Home
last modified time | relevance | path

Searched refs:OVERHEAD (Results 1 – 14 of 14) sorted by relevance

/third_party/musl/porting/linux/user/src/internal/
Dmalloc_impl.h68 #define OVERHEAD (2*sizeof(size_t) + ITERATE_AND_STATS_OVERHEAD) macro
71 #define OVERHEAD (4*sizeof(size_t) + ITERATE_AND_STATS_OVERHEAD) macro
76 #define OVERHEAD (2*sizeof(size_t)) macro
79 #define OVERHEAD (4*sizeof(size_t)) macro
86 #define DONTCARE OVERHEAD
91 #define DONTCARE OVERHEAD
107 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
108 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
/third_party/musl/porting/liteos_a/user/src/malloc/
Dmalloc.c184 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
292 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
296 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
297 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
298 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
389 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
432 new = malloc(n-OVERHEAD); in realloc()
435 memcpy(new, p, n0-OVERHEAD); in realloc()
533 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()
539 if (end - start <= OVERHEAD + align_start_up + align_end_down) in __malloc_donate()
[all …]
/third_party/musl/src/malloc/
Dmalloc.c184 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
292 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
299 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
300 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
301 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
392 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
435 new = malloc(n-OVERHEAD); in realloc()
438 memcpy(new, p, n0-OVERHEAD); in realloc()
536 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()
542 if (end - start <= OVERHEAD + align_start_up + align_end_down) in __malloc_donate()
[all …]
Dmalloc_usable_size.c8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in malloc_usable_size()
/third_party/musl/porting/liteos_a/user_debug/src/internal/
Dmalloc_impl.h66 #define OVERHEAD (sizeof(struct chunk)) macro
67 #define BLOCK_HEAD (sizeof(struct heap_block) + OVERHEAD)
79 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
80 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
/third_party/musl/src/internal/
Dmalloc_impl.h25 #define OVERHEAD (2*sizeof(size_t)) macro
34 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)
35 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
/third_party/musl/porting/linux/user/src/malloc/
Dmalloc.c218 malloc_iterate_visitor(CHUNK_TO_MEM(c), CHUNK_SIZE(c) - OVERHEAD, iterate_info); in malloc_iterate_occupied_bin()
373 size_t size = CHUNK_SIZE(c) - OVERHEAD - c->usize; in chunk_poison_set()
383 size_t padding_size = csize - OVERHEAD - c->usize; in chunk_poison_check()
384 char *start = (char *)c + OVERHEAD + c->usize; in chunk_poison_check()
469 total_heap_space += n - OVERHEAD; in expand_heap()
495 *n = (*n + OVERHEAD + SIZE_ALIGN) & SIZE_MASK; in adjust_size()
497 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
654 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in internal_malloc()
661 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in internal_malloc()
662 c->csize = len - (SIZE_ALIGN - OVERHEAD); in internal_malloc()
[all …]
Dmalloc_usable_size.c30 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in internal_malloc_usable_size()
Dstats.c104 size_t chunk_memory = CHUNK_SIZE(c) - OVERHEAD; in add_up_chunks()
121 size_t chunk_memory = CHUNK_SIZE(c) - OVERHEAD; in add_up_chunks_by_threads()
Dmemalign.c72 c->usize = OVERHEAD; in __memalign()
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmalloc.c190 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()
304 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()
319 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()
320 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
321 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()
429 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()
487 new = malloc(n-OVERHEAD); in realloc()
491 memcpy(new, p, n0-OVERHEAD); in realloc()
Dmemory_check.c796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()
/third_party/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c64 #define OVERHEAD 50000 // allow for 50 us of periodic overhead (context switch, etc.) macro
253 if (load_ms * NS_PER_MS >= period - OVERHEAD) { in main()
255 OVERHEAD / NS_PER_US); in main()
/third_party/musl/libc-test/src/functional/
Dtest-malloc-stats-common.h30 #define MMAP_THRESHOLD ((0x1c00 * SIZE_ALIGN) - OVERHEAD)
32 #define OVERHEAD (sizeof(size_t) + LIST_OVERHEAD) macro