/external/jemalloc/src/ |
D | pages.c | 104 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in pages_trim() argument 107 void *ret = (void *)((uintptr_t)addr + leadsize); in pages_trim() 109 assert(alloc_size >= leadsize + size); in pages_trim() 124 size_t trailsize = alloc_size - leadsize - size; in pages_trim() 126 if (leadsize != 0) in pages_trim() 127 pages_unmap(addr, leadsize); in pages_trim()
|
D | chunk_mmap.c | 18 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, commit); in chunk_alloc_mmap_slow()
|
D | chunk.c | 208 size_t alloc_size, leadsize, trailsize; in chunk_recycle() local 241 leadsize = ALIGNMENT_CEILING((uintptr_t)extent_node_addr_get(node), in chunk_recycle() 243 assert(new_addr == NULL || leadsize == 0); in chunk_recycle() 244 assert(extent_node_size_get(node) >= leadsize + size); in chunk_recycle() 245 trailsize = extent_node_size_get(node) - leadsize - size; in chunk_recycle() 246 ret = (void *)((uintptr_t)extent_node_addr_get(node) + leadsize); in chunk_recycle() 255 if (leadsize != 0 && in chunk_recycle() 257 extent_node_size_get(node), leadsize, size, false, arena->ind)) { in chunk_recycle() 265 if (leadsize != 0) { in chunk_recycle() 267 extent_node_size_set(node, leadsize); in chunk_recycle()
|
D | arena.c | 2706 size_t alloc_size, leadsize, trailsize; in arena_palloc_large() local 2733 leadsize = ALIGNMENT_CEILING((uintptr_t)rpages, alignment) - in arena_palloc_large() 2735 assert(alloc_size >= leadsize + usize); in arena_palloc_large() 2736 trailsize = alloc_size - leadsize - usize - large_pad; in arena_palloc_large() 2737 if (leadsize != 0) { in arena_palloc_large() 2742 arena_miscelm_to_pageind(head_miscelm) + (leadsize >> in arena_palloc_large() 2747 alloc_size - leadsize); in arena_palloc_large()
|
/external/jemalloc_new/src/ |
D | pages.c | 113 os_pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in os_pages_trim() argument 115 void *ret = (void *)((uintptr_t)addr + leadsize); in os_pages_trim() 117 assert(alloc_size >= leadsize + size); in os_pages_trim() 129 size_t trailsize = alloc_size - leadsize - size; in os_pages_trim() 131 if (leadsize != 0) { in os_pages_trim() 132 os_pages_unmap(addr, leadsize); in os_pages_trim() 182 size_t leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) in pages_map_slow() local 184 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit); in pages_map_slow()
|
D | extent.c | 388 size_t leadsize = next_align - base; in extents_fit_alignment() local 389 if (candidate_size - leadsize >= min_size) { in extents_fit_alignment() 960 size_t leadsize = ALIGNMENT_CEILING((uintptr_t)extent_base_get(*extent), in extent_split_interior() local 962 assert(new_addr == NULL || leadsize == 0); in extent_split_interior() 963 if (extent_size_get(*extent) < leadsize + esize) { in extent_split_interior() 966 size_t trailsize = extent_size_get(*extent) - leadsize - esize; in extent_split_interior() 974 if (leadsize != 0) { in extent_split_interior() 977 *lead, leadsize, NSIZES, false, esize + trailsize, szind, in extent_split_interior() 1000 if (leadsize == 0 && trailsize == 0) { in extent_split_interior()
|
/external/jemalloc/include/jemalloc/internal/ |
D | pages.h | 14 void *pages_trim(void *addr, size_t alloc_size, size_t leadsize,
|
/external/u-boot/common/ |
D | dlmalloc.c | 1888 INTERNAL_SIZE_T leadsize; /* leading space befor alignment point */ local 1981 leadsize = brk - (char*)(p); 1982 newsize = chunksize(p) - leadsize; 1987 newp->prev_size = p->prev_size + leadsize; 1997 set_head_size(p, leadsize);
|
D | dlmalloc.src | 2725 INTERNAL_SIZE_T leadsize; /* leading space befor alignment point */ 2770 leadsize = brk - (char*)(p); 2771 newsize = chunksize(p) - leadsize; 2776 newp->prev_size = p->prev_size + leadsize; 2786 set_head_size(p, leadsize);
|
/external/dlmalloc/ |
D | malloc.c | 4956 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()
|
/external/python/cpython2/Modules/_ctypes/libffi/src/ |
D | dlmalloc.c | 3952 size_t leadsize = pos - (char*)(p); in internal_memalign() local 3953 size_t newsize = chunksize(p) - leadsize; in internal_memalign() 3956 newp->prev_foot = p->prev_foot + leadsize; in internal_memalign() 3961 set_inuse(m, p, leadsize); in internal_memalign()
|
/external/libffi/src/ |
D | dlmalloc.c | 3947 size_t leadsize = pos - (char*)(p); in internal_memalign() local 3948 size_t newsize = chunksize(p) - leadsize; in internal_memalign() 3951 newp->prev_foot = p->prev_foot + leadsize; in internal_memalign() 3956 set_inuse(m, p, leadsize); in internal_memalign()
|