Lines Matching refs:batch
9 verify_batch_basic(tsd_t *tsd, void **ptrs, size_t batch, size_t usize,
11 for (size_t i = 0; i < batch; ++i) {
23 verify_batch_locality(tsd_t *tsd, void **ptrs, size_t batch, size_t usize,
27 * Checking batch locality when prof is on is feasible but
33 for (size_t i = 0, j = 0; i < batch; ++i, ++j) {
37 if (j == 0 && batch - i < nregs) {
54 release_batch(void **ptrs, size_t batch, size_t size) {
55 for (size_t i = 0; i < batch; ++i) {
123 size_t batch = base + (size_t)j;
124 assert(batch < BATCH_MAX);
125 size_t filled = batch_alloc_wrapper(global_ptrs, batch,
127 assert_zu_eq(filled, batch, "");
128 verify_batch_basic(tsd, global_ptrs, batch, usize,
130 verify_batch_locality(tsd, global_ptrs, batch, usize,
132 release_batch(global_ptrs, batch, usize);
165 for (size_t batch = 0; batch < 4; ++batch) {
166 assert(batch < BATCH_MAX);
167 size_t filled = batch_alloc(global_ptrs, batch, size, 0);
168 assert_zu_eq(filled, batch, "");
169 release_batch(global_ptrs, batch, size);
172 for (size_t batch = 0; batch < 4; ++batch) {
173 assert(batch < BATCH_MAX);
174 size_t filled = batch_alloc(global_ptrs, batch, size, 0);
175 assert_zu_eq(filled, batch, "");
176 release_batch(global_ptrs, batch, size);