Lines Matching refs:sz
118 size_t sz; in TEST_BEGIN() local
120 for (sz = 1; sz < MAXSZ; sz = nallocx(sz, 0) + 1) { in TEST_BEGIN()
123 nsz = nallocx(sz, 0); in TEST_BEGIN()
125 p = mallocx(sz, 0); in TEST_BEGIN()
127 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN()
129 assert_zu_ge(rsz, sz, "Real size smaller than expected"); in TEST_BEGIN()
133 p = mallocx(sz, 0); in TEST_BEGIN()
135 "Unexpected mallocx(size=%zx, flags=0) error", sz); in TEST_BEGIN()
138 nsz = nallocx(sz, MALLOCX_ZERO); in TEST_BEGIN()
140 p = mallocx(sz, MALLOCX_ZERO); in TEST_BEGIN()
155 size_t sz = sizeof(percpu_arena); in TEST_BEGIN() local
157 if(mallctl("opt.percpu_arena", (void *)&percpu_arena, &sz, NULL, 0) || in TEST_BEGIN()
176 for (sz = 1; in TEST_BEGIN()
177 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN()
178 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN()
180 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN()
184 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN()
185 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN()
189 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN()
191 assert_zu_ge(rsz, sz, in TEST_BEGIN()
193 "alignment=%zu, size=%zu", alignment, sz); in TEST_BEGIN()
196 "alignment=%zu, size=%zu", alignment, sz); in TEST_BEGIN()
201 alignment, sz); in TEST_BEGIN()