Lines Matching refs:arena_ind
89 unsigned arena_ind; in do_arena_create() local
91 assert_d_eq(mallctl("arenas.create", (void *)&arena_ind, &sz, in do_arena_create()
94 return arena_ind; in do_arena_create()
98 do_arena_reset_pre(unsigned arena_ind, void ***ptrs, unsigned *nptrs) { in do_arena_reset_pre() argument
105 flags = MALLOCX_ARENA(arena_ind) | MALLOCX_TCACHE_NONE; in do_arena_reset_pre()
137 do_arena_reset_post(void **ptrs, unsigned nptrs, unsigned arena_ind) { in do_arena_reset_post() argument
145 &background_thread_info[arena_ind % ncpus].mtx); in do_arena_reset_post()
154 &background_thread_info[arena_ind % ncpus].mtx); in do_arena_reset_post()
161 do_arena_reset_destroy(const char *name, unsigned arena_ind) { in do_arena_reset_destroy() argument
168 mib[1] = (size_t)arena_ind; in do_arena_reset_destroy()
174 do_arena_reset(unsigned arena_ind) { in do_arena_reset() argument
175 do_arena_reset_destroy("arena.0.reset", arena_ind); in do_arena_reset()
179 do_arena_destroy(unsigned arena_ind) { in do_arena_destroy() argument
180 do_arena_reset_destroy("arena.0.destroy", arena_ind); in do_arena_destroy()
184 unsigned arena_ind; in TEST_BEGIN() local
188 arena_ind = do_arena_create(NULL); in TEST_BEGIN()
189 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
190 do_arena_reset(arena_ind); in TEST_BEGIN()
191 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
196 arena_i_initialized(unsigned arena_ind, bool refresh) { in arena_i_initialized() argument
210 mib[1] = (size_t)arena_ind; in arena_i_initialized()
225 unsigned arena_ind, arena_ind_another, arena_ind_prev; in TEST_BEGIN() local
229 arena_ind = do_arena_create(NULL); in TEST_BEGIN()
230 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
232 assert_false(arena_i_initialized(arena_ind, false), in TEST_BEGIN()
234 assert_true(arena_i_initialized(arena_ind, true), in TEST_BEGIN()
243 do_arena_destroy(arena_ind); in TEST_BEGIN()
245 assert_false(arena_i_initialized(arena_ind, true), in TEST_BEGIN()
250 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
252 arena_ind_prev = arena_ind; in TEST_BEGIN()
253 arena_ind = do_arena_create(NULL); in TEST_BEGIN()
254 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
255 assert_u_eq(arena_ind, arena_ind_prev, in TEST_BEGIN()
257 do_arena_destroy(arena_ind); in TEST_BEGIN()
258 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
270 bool committed, unsigned arena_ind) { in extent_dalloc_unmap() argument
273 "true" : "false", arena_ind); in extent_dalloc_unmap()
302 unsigned arena_ind; in TEST_BEGIN() local
312 arena_ind = do_arena_create(&hooks); in TEST_BEGIN()
313 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
317 assert_false(arena_i_initialized(arena_ind, false), in TEST_BEGIN()
319 assert_true(arena_i_initialized(arena_ind, true), in TEST_BEGIN()
323 do_arena_destroy(arena_ind); in TEST_BEGIN()
326 assert_false(arena_i_initialized(arena_ind, true), in TEST_BEGIN()
331 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()