Home
last modified time | relevance | path

Searched refs:leadsize (Results 1 – 6 of 6) sorted by relevance

/external/jemalloc/src/
Dpages.c88 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size) in pages_trim() argument
90 void *ret = (void *)((uintptr_t)addr + leadsize); in pages_trim()
92 assert(alloc_size >= leadsize + size); in pages_trim()
107 size_t trailsize = alloc_size - leadsize - size; in pages_trim()
109 if (leadsize != 0) in pages_trim()
110 pages_unmap(addr, leadsize); in pages_trim()
Dchunk_mmap.c18 size_t leadsize; in chunk_alloc_mmap_slow() local
22 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - in chunk_alloc_mmap_slow()
24 ret = pages_trim(pages, alloc_size, leadsize, size); in chunk_alloc_mmap_slow()
Dchunk.c207 size_t alloc_size, leadsize, trailsize; in chunk_recycle() local
238 leadsize = ALIGNMENT_CEILING((uintptr_t)extent_node_addr_get(node), in chunk_recycle()
240 assert(new_addr == NULL || leadsize == 0); in chunk_recycle()
241 assert(extent_node_size_get(node) >= leadsize + size); in chunk_recycle()
242 trailsize = extent_node_size_get(node) - leadsize - size; in chunk_recycle()
243 ret = (void *)((uintptr_t)extent_node_addr_get(node) + leadsize); in chunk_recycle()
251 if (leadsize != 0 && in chunk_recycle()
253 extent_node_size_get(node), leadsize, size, false, arena->ind)) { in chunk_recycle()
261 if (leadsize != 0) { in chunk_recycle()
263 extent_node_size_set(node, leadsize); in chunk_recycle()
Darena.c2502 size_t alloc_size, leadsize, trailsize; in arena_palloc_large() local
2527 leadsize = ALIGNMENT_CEILING((uintptr_t)rpages, alignment) - in arena_palloc_large()
2529 assert(alloc_size >= leadsize + usize); in arena_palloc_large()
2530 trailsize = alloc_size - leadsize - usize - large_pad; in arena_palloc_large()
2531 if (leadsize != 0) { in arena_palloc_large()
2536 arena_miscelm_to_pageind(head_miscelm) + (leadsize >> in arena_palloc_large()
2541 alloc_size - leadsize); in arena_palloc_large()
/external/jemalloc/include/jemalloc/internal/
Dpages.h14 void *pages_trim(void *addr, size_t alloc_size, size_t leadsize,
/external/dlmalloc/
Dmalloc.c4956 size_t leadsize = pos - (char*)(p); in internal_memalign() local
4957 size_t newsize = chunksize(p) - leadsize; in internal_memalign()
4960 newp->prev_foot = p->prev_foot + leadsize; in internal_memalign()
4965 set_inuse(m, p, leadsize); in internal_memalign()
4966 dispose_chunk(m, p, leadsize); in internal_memalign()