Home
last modified time | relevance | path

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

/external/jemalloc/src/
Dchunk_mmap.c98 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size) in pages_trim() argument
100 void *ret = (void *)((uintptr_t)addr + leadsize); in pages_trim()
102 assert(alloc_size >= leadsize + size); in pages_trim()
117 size_t trailsize = alloc_size - leadsize - size; in pages_trim()
119 if (leadsize != 0) in pages_trim()
120 pages_unmap(addr, leadsize); in pages_trim()
161 size_t alloc_size, leadsize; in chunk_alloc_mmap_slow() local
171 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - in chunk_alloc_mmap_slow()
173 ret = pages_trim(pages, alloc_size, leadsize, size); in chunk_alloc_mmap_slow()
Dchunk.c88 size_t alloc_size, leadsize, trailsize; in chunk_recycle() local
112 leadsize = ALIGNMENT_CEILING((uintptr_t)extent_node_addr_get(node), in chunk_recycle()
114 assert(new_addr == NULL || leadsize == 0); in chunk_recycle()
115 assert(extent_node_size_get(node) >= leadsize + size); in chunk_recycle()
116 trailsize = extent_node_size_get(node) - leadsize - size; in chunk_recycle()
117 ret = (void *)((uintptr_t)extent_node_addr_get(node) + leadsize); in chunk_recycle()
125 if (leadsize != 0) { in chunk_recycle()
127 extent_node_size_set(node, leadsize); in chunk_recycle()
Darena.c2079 size_t alloc_size, leadsize, trailsize; in arena_palloc_large() local
2104 leadsize = ALIGNMENT_CEILING((uintptr_t)rpages, alignment) - in arena_palloc_large()
2106 assert(alloc_size >= leadsize + size); in arena_palloc_large()
2107 trailsize = alloc_size - leadsize - size - large_pad; in arena_palloc_large()
2108 if (leadsize != 0) { in arena_palloc_large()
2113 arena_miscelm_to_pageind(head_miscelm) + (leadsize >> in arena_palloc_large()
2118 alloc_size - leadsize); in arena_palloc_large()