Lines Matching defs:ptrs
95 void **ptrs;
100 ptrs = mallocx(nregs * sizeof(void *), 0);
101 assert_ptr_not_null(ptrs, "Unexpected mallocx failure");
103 bin_slab_reg_alloc_batch(&slab, bin_info, nregs, ptrs);
111 expect_ptr_not_null(ptrs[i], "Batch pointer should be non-NULL");
113 (uintptr_t)ptrs[i] >= (uintptr_t)edata_addr_get(&slab) &&
114 (uintptr_t)ptrs[i] < (uintptr_t)edata_addr_get(&slab)
118 expect_ptr_ne(ptrs[i], ptrs[j],
122 free(ptrs);
136 void **ptrs;
146 ptrs = mallocx(half * sizeof(void *), 0);
147 assert_ptr_not_null(ptrs, "Unexpected mallocx failure");
149 bin_slab_reg_alloc_batch(&slab, bin_info, half, ptrs);
153 free(ptrs);
484 void **ptrs;
495 ptrs = mallocx(nregs * sizeof(void *), 0);
496 assert_ptr_not_null(ptrs, "Unexpected mallocx failure");
498 ptrs[i] = bin_slab_reg_alloc(&slab, bin_info);
499 assert_ptr_not_null(ptrs[i], "Alloc should succeed");
517 tsdn, true, &bin, &info, binind, &slab, ptrs[0]);
533 tsdn, true, &bin, &info, binind, &slab, ptrs[i]);
549 free(ptrs);
705 void **ptrs;
712 ptrs = mallocx(nregs * sizeof(void *), 0);
713 assert_ptr_not_null(ptrs, "Unexpected mallocx failure");
718 ptrs[0] = bin_malloc_with_fresh_slab(tsdn, &bin, binind, &slab);
719 expect_ptr_not_null(ptrs[0], "First alloc should succeed");
723 ptrs[i] = bin_malloc_no_fresh_slab(tsdn, true, &bin, binind);
724 expect_ptr_not_null(ptrs[i], "Alloc should succeed");
737 tsdn, true, &bin, &info, binind, &slab, ptrs[i]);
749 free(ptrs);