Lines Matching refs:fresh
306 * Test refill slabcur with a fresh slab.
313 edata_t fresh;
316 create_mock_slab(&fresh, binind, 0);
319 bin_refill_slabcur_with_fresh_slab(tsdn, &bin, binind, &fresh);
320 expect_ptr_eq(bin.slabcur, &fresh,
321 "Fresh slab should become slabcur");
324 "nslabs should be 1 after installing fresh slab");
326 "curslabs should be 1 after installing fresh slab");
329 "Fresh slab should have all regions free");
332 free(edata_addr_get(&fresh));
337 * Test refill slabcur without a fresh slab (from the nonfull heap).
410 * Test malloc with a fresh slab.
417 edata_t fresh;
421 create_mock_slab(&fresh, binind, 0);
424 ptr = bin_malloc_with_fresh_slab(tsdn, &bin, binind, &fresh);
425 expect_ptr_not_null(ptr, "Should allocate from fresh slab");
426 expect_ptr_eq(bin.slabcur, &fresh,
427 "Fresh slab should be installed as slabcur");
428 expect_u_eq(edata_nfree_get(&fresh), bin_info->nregs - 1,
429 "One region should be consumed from fresh slab");
436 free(edata_addr_get(&fresh));
441 * Test malloc without a fresh slab (from existing slabcur).
717 /* Allocate the first pointer via fresh slab path. */