/external/jemalloc/test/integration/ |
D | chunk.c | 29 bool *commit, unsigned arena_ind) in chunk_alloc() argument 34 *zero ? "true" : "false", *commit ? "true" : "false", arena_ind); in chunk_alloc() 37 arena_ind)); in chunk_alloc() 41 chunk_dalloc(void *chunk, size_t size, bool committed, unsigned arena_ind) in chunk_dalloc() argument 45 __func__, chunk, size, committed ? "true" : "false", arena_ind); in chunk_dalloc() 49 return (old_hooks.dalloc(chunk, size, committed, arena_ind)); in chunk_dalloc() 54 unsigned arena_ind) in chunk_commit() argument 60 arena_ind); in chunk_commit() 61 err = old_hooks.commit(chunk, size, offset, length, arena_ind); in chunk_commit() 68 unsigned arena_ind) in chunk_decommit() argument [all …]
|
D | thread_arena.c | 10 unsigned arena_ind; in thd_start() local 18 size = sizeof(arena_ind); in thd_start() 19 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, in thd_start() 27 size = sizeof(arena_ind); in thd_start() 28 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL, in thd_start() 35 assert_u_eq(arena_ind, main_arena_ind, in thd_start() 44 unsigned arena_ind; in TEST_BEGIN() local 53 size = sizeof(arena_ind); in TEST_BEGIN() 54 if ((err = mallctl("thread.arena", (void *)&arena_ind, &size, NULL, in TEST_BEGIN() 64 (void *)&arena_ind); in TEST_BEGIN()
|
D | MALLOCX_ARENA.c | 17 unsigned arena_ind; in thd_start() local 21 sz = sizeof(arena_ind); in thd_start() 22 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in thd_start() 35 mib[1] = arena_ind; in thd_start() 41 p = mallocx(1, MALLOCX_ARENA(arena_ind)); in thd_start()
|
D | xallocx.c | 13 arena_ind(void) in arena_ind() function 244 int flags = MALLOCX_ARENA(arena_ind()); in TEST_BEGIN() 311 int flags = MALLOCX_ARENA(arena_ind()); in TEST_BEGIN() 416 int flags = MALLOCX_ARENA(arena_ind()) | MALLOCX_ZERO; in test_zero()
|
/external/jemalloc/test/unit/ |
D | pack.c | 110 unsigned arena_ind; in arenas_extend_mallctl() local 113 sz = sizeof(arena_ind); in arenas_extend_mallctl() 114 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in arenas_extend_mallctl() 117 return (arena_ind); in arenas_extend_mallctl() 121 arena_reset_mallctl(unsigned arena_ind) in arena_reset_mallctl() argument 128 mib[1] = (size_t)arena_ind; in arena_reset_mallctl() 135 unsigned arena_ind = arenas_extend_mallctl(); in TEST_BEGIN() local 146 void *p = mallocx(SZ, MALLOCX_ARENA(arena_ind) | in TEST_BEGIN() 151 SZ, arena_ind, i, j); in TEST_BEGIN() 169 dallocx(p, MALLOCX_ARENA(arena_ind) | in TEST_BEGIN() [all …]
|
D | arena_reset.c | 84 unsigned arena_ind, nsmall, nlarge, nhuge, nptrs, i; in TEST_BEGIN() local 95 assert_d_eq(mallctl("arenas.extend", (void *)&arena_ind, &sz, NULL, 0), in TEST_BEGIN() 98 flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in TEST_BEGIN() 139 mib[1] = (size_t)arena_ind; in TEST_BEGIN()
|
/external/jemalloc/include/jemalloc/ |
D | jemalloc_typedefs.h.in | 4 * bool *commit, unsigned arena_ind); 10 * chunk_dalloc(void *chunk, size_t size, bool committed, unsigned arena_ind); 17 * unsigned arena_ind); 24 * unsigned arena_ind); 31 * unsigned arena_ind); 38 * bool committed, unsigned arena_ind); 45 * bool committed, unsigned arena_ind);
|
/external/jemalloc/src/ |
D | chunk.c | 22 size_t alignment, bool *zero, bool *commit, unsigned arena_ind); 24 unsigned arena_ind); 26 size_t length, unsigned arena_ind); 28 size_t length, unsigned arena_ind); 30 size_t length, unsigned arena_ind); 32 size_t size_b, bool committed, unsigned arena_ind); 34 size_t size_b, bool committed, unsigned arena_ind); 411 chunk_arena_get(tsdn_t *tsdn, unsigned arena_ind) in chunk_arena_get() argument 415 arena = arena_get(tsdn, arena_ind, false); in chunk_arena_get() 442 bool *commit, unsigned arena_ind) in chunk_alloc_default() argument [all …]
|
D | ctl.c | 120 static void arena_i_purge(tsdn_t *tsdn, unsigned arena_ind, bool all); 1542 arena_i_purge(tsdn_t *tsdn, unsigned arena_ind, bool all) in arena_i_purge() argument 1549 if (arena_ind == narenas) { in arena_i_purge() 1569 assert(arena_ind < narenas); in arena_i_purge() 1571 tarena = arena_get(tsdn, arena_ind, false); in arena_i_purge() 1617 unsigned arena_ind; in arena_i_reset_ctl() local 1629 arena_ind = (unsigned)mib[1]; in arena_i_reset_ctl() 1632 assert(arena_ind < ctl_stats.narenas); in arena_i_reset_ctl() 1635 assert(arena_ind >= opt_narenas); in arena_i_reset_ctl() 1637 arena = arena_get(tsd_tsdn(tsd), arena_ind, false); in arena_i_reset_ctl() [all …]
|
D | jemalloc.c | 2144 unsigned arena_ind = MALLOCX_ARENA_GET(flags); local 2145 *arena = arena_get(tsd_tsdn(tsd), arena_ind, true); 2392 unsigned arena_ind = MALLOCX_ARENA_GET(flags); local 2393 arena = arena_get(tsd_tsdn(tsd), arena_ind, true);
|