Lines Matching refs:base
30 base_t *base;
34 base = base_new(tsdn, 0, (extent_hooks_t *)&extent_hooks_default);
37 base_stats_get(tsdn, base, &allocated0, &resident, &mapped);
42 assert_ptr_not_null(base_alloc(tsdn, base, 42, 1),
46 base_stats_get(tsdn, base, &allocated1, &resident, &mapped);
51 base_delete(base);
59 base_t *base;
71 base = base_new(tsdn, 0, &hooks);
72 assert_ptr_not_null(base, "Unexpected base_new() failure");
75 base_stats_get(tsdn, base, &allocated0, &resident, &mapped);
80 assert_ptr_not_null(base_alloc(tsdn, base, 42, 1),
84 base_stats_get(tsdn, base, &allocated1, &resident, &mapped);
89 base_delete(base);
99 base_t *base;
112 base = base_new(tsdn, 0, &hooks);
113 assert_ptr_not_null(base, "Unexpected base_new() failure");
134 p = base_alloc(tsdn, base, 1, alignment);
140 q = base_alloc(tsdn, base, alignment, alignment);
146 r = base_alloc(tsdn, base, 1, alignment);
160 assert_zu_ge(extent_size_get(&base->blocks->extent), QUANTUM,
163 while (extent_size_get(&base->blocks->extent) > QUANTUM) {
164 p = base_alloc(tsdn, base, QUANTUM, QUANTUM);
167 r_exp = extent_addr_get(&base->blocks->extent);
168 assert_zu_eq(base->extent_sn_next, 1, "One extant block expected");
169 q = base_alloc(tsdn, base, QUANTUM + 1, QUANTUM);
172 assert_zu_eq(base->extent_sn_next, 2, "Two extant blocks expected");
173 r = base_alloc(tsdn, base, QUANTUM, QUANTUM);
176 assert_zu_eq(base->extent_sn_next, 2, "Two extant blocks expected");
190 p = base_alloc(tsdn, base, QUANTUM, alignment);
202 base_delete(base);