Home
last modified time | relevance | path

Searched refs:arena_ind (Results 1 – 10 of 10) sorted by relevance

/external/jemalloc/test/integration/
Dchunk.c29 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 …]
Dthread_arena.c10 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()
DMALLOCX_ARENA.c17 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()
Dxallocx.c13 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/
Dpack.c110 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 …]
Darena_reset.c84 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/
Djemalloc_typedefs.h.in4 * 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/
Dchunk.c22 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 …]
Dctl.c120 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 …]
Djemalloc.c2144 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);