Lines Matching refs:ptrs
98 do_arena_reset_pre(unsigned arena_ind, void ***ptrs, unsigned *nptrs) { in do_arena_reset_pre() argument
110 *ptrs = (void **)malloc(*nptrs * sizeof(void *)); in do_arena_reset_pre()
111 assert_ptr_not_null(*ptrs, "Unexpected malloc() failure"); in do_arena_reset_pre()
116 (*ptrs)[i] = mallocx(sz, flags); in do_arena_reset_pre()
117 assert_ptr_not_null((*ptrs)[i], in do_arena_reset_pre()
122 (*ptrs)[nsmall + i] = mallocx(sz, flags); in do_arena_reset_pre()
123 assert_ptr_not_null((*ptrs)[i], in do_arena_reset_pre()
131 assert_zu_gt(ivsalloc(tsdn, (*ptrs)[i]), 0, in do_arena_reset_pre()
137 do_arena_reset_post(void **ptrs, unsigned nptrs, unsigned arena_ind) { in do_arena_reset_post() argument
149 assert_zu_eq(vsalloc(tsdn, ptrs[i]), 0, in do_arena_reset_post()
157 free(ptrs); in do_arena_reset_post()
185 void **ptrs; in TEST_BEGIN() local
189 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
191 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
226 void **ptrs; in TEST_BEGIN() local
230 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
250 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
254 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
258 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()
303 void **ptrs; in TEST_BEGIN() local
313 do_arena_reset_pre(arena_ind, &ptrs, &nptrs); in TEST_BEGIN()
331 do_arena_reset_post(ptrs, nptrs, arena_ind); in TEST_BEGIN()