Searched refs:OVERHEAD (Results 1 – 9 of 9) sorted by relevance
246 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()302 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()306 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()307 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()308 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()374 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()426 new = malloc(n-OVERHEAD); in realloc()429 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()523 size_t align_start_up = (SIZE_ALIGN-1) & (-(uintptr_t)start - OVERHEAD); in __malloc_donate()529 if (end - start <= OVERHEAD + align_start_up + align_end_down) in __malloc_donate()[all …]
20 #define OVERHEAD (2*sizeof(size_t)) macro29 #define MEM_TO_CHUNK(p) (struct chunk *)((char *)(p) - OVERHEAD)30 #define CHUNK_TO_MEM(c) (void *)((char *)(c) + OVERHEAD)
8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0; in malloc_usable_size()
66 #define OVERHEAD (sizeof(struct chunk)) macro67 #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)
253 *n = (*n + OVERHEAD + SIZE_ALIGN - 1) & SIZE_MASK; in adjust_size()312 size_t len = n + OVERHEAD + PAGE_SIZE - 1 & -PAGE_SIZE; in malloc()327 c = (void *)(base + SIZE_ALIGN - OVERHEAD); in malloc()328 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()329 c->psize = SIZE_ALIGN - OVERHEAD; in malloc()409 if (newlen < PAGE_SIZE && (new = malloc(n-OVERHEAD))) { in realloc()475 new = malloc(n-OVERHEAD); in realloc()478 memcpy(new, p, (n<n0 ? n : n0) - OVERHEAD); in realloc()
64 #define OVERHEAD 50000 // allow for 50 us of periodic overhead (context switch, etc.) macro253 if (load_ms * NS_PER_MS >= period - OVERHEAD) { in main()255 OVERHEAD / NS_PER_US); in main()
30 #define MMAP_THRESHOLD ((0x1c00 * SIZE_ALIGN) - OVERHEAD)32 #define OVERHEAD (sizeof(size_t) + LIST_OVERHEAD) macro
796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()