Home
last modified time | relevance | path

Searched refs:alloc_size (Results 1 – 12 of 12) sorted by relevance

/third_party/ulib/jemalloc/test/unit/
A Dpages.c5 size_t alloc_size; in TEST_BEGIN() local
9 alloc_size = HUGEPAGE * 2 - PAGE; in TEST_BEGIN()
11 pages = pages_map(NULL, alloc_size, &commit); in TEST_BEGIN()
20 pages_unmap(pages, alloc_size); in TEST_BEGIN()
/third_party/ulib/jemalloc/src/
A Dextent_mmap.c10 size_t alloc_size; in extent_alloc_mmap_slow() local
12 alloc_size = size + alignment - PAGE; in extent_alloc_mmap_slow()
14 if (alloc_size < size) in extent_alloc_mmap_slow()
19 pages = pages_map(NULL, alloc_size, commit); in extent_alloc_mmap_slow()
24 ret = pages_trim(pages, alloc_size, leadsize, size, commit); in extent_alloc_mmap_slow()
A Dpages.c102 size_t alloc_size, size_t leadsize) { in fuchsia_pages_trim() argument
103 size_t trailsize = alloc_size - leadsize - size; in fuchsia_pages_trim()
194 pages_trim(void *addr, size_t alloc_size, size_t leadsize, size_t size, in pages_trim() argument
199 assert(alloc_size >= leadsize + size); in pages_trim()
204 pages_unmap(addr, alloc_size); in pages_trim()
213 return fuchsia_pages_trim(ret, addr, size, alloc_size, leadsize); in pages_trim()
216 size_t trailsize = alloc_size - leadsize - size; in pages_trim()
A Dzone.c197 size_t alloc_size; in zone_free_definite_size() local
199 alloc_size = ivsalloc(tsdn_fetch(), ptr); in zone_free_definite_size()
200 if (alloc_size != 0) { in zone_free_definite_size()
201 assert(alloc_size == size); in zone_free_definite_size()
A Dextent.c423 size_t size, alloc_size, leadsize, trailsize; in extent_recycle() local
453 alloc_size = size + PAGE_CEILING(alignment) - PAGE; in extent_recycle()
455 if (alloc_size < usize) in extent_recycle()
481 alloc_size); in extent_recycle()
703 size_t size, alloc_size, alloc_size_min, leadsize, trailsize; in extent_grow_retained() local
713 alloc_size = pind2sz(arena->extent_grow_next); in extent_grow_retained()
718 if (alloc_size < alloc_size_min) in extent_grow_retained()
725 ptr = extent_alloc_core(tsdn, arena, new_addr, alloc_size, PAGE, in extent_grow_retained()
727 extent_init(extent, arena, ptr, alloc_size, alloc_size, in extent_grow_retained()
742 assert(alloc_size >= leadsize + size); in extent_grow_retained()
[all …]
/third_party/ulib/jemalloc/include/jemalloc/
A Djemalloc_macros.h89 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s))
90 # define JEMALLOC_ALLOC_SIZE2(s1, s2) JEMALLOC_ATTR(alloc_size(s1, s2))
A Djemalloc_defs.h.in4 /* Defined if alloc_size attribute is supported. */
A Djemalloc_macros.h.in89 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s))
90 # define JEMALLOC_ALLOC_SIZE2(s1, s2) JEMALLOC_ATTR(alloc_size(s1, s2))
A Djemalloc.h173 # define JEMALLOC_ALLOC_SIZE(s) JEMALLOC_ATTR(alloc_size(s))
174 # define JEMALLOC_ALLOC_SIZE2(s1, s2) JEMALLOC_ATTR(alloc_size(s1, s2))
/third_party/ulib/jemalloc/include/jemalloc/internal/
A Dpages_externs.h23 void *pages_trim(void *addr, size_t alloc_size, size_t leadsize,
/third_party/ulib/musl/ldso/
A Ddynlink.c1312 size_t alloc_size; in load_library_vmo() local
1377 alloc_size = (sizeof *p + ndeps * sizeof(p->deps[0]) + in load_library_vmo()
1383 alloc_size = SIZE_MAX; in load_library_vmo()
1385 alloc_size += n_th * per_th; in load_library_vmo()
1387 p = dl_alloc(alloc_size); in load_library_vmo()
/third_party/ulib/jemalloc/
A Dconfigure.ac635 dnl Check for alloc_size attribute support.
639 JE_COMPILABLE([alloc_size attribute], [#include <stdlib.h>],
640 [void *foo(size_t size) __attribute__((alloc_size(1)));],

Completed in 29 milliseconds