Lines Matching refs:batch
104 // For large size classes we use one of the chunks to store the batch.
108 void *batch[kMaxNumCached];
315 typedef typename SizeClassMap::TransferBatch Batch;
341 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c,
345 Batch *b = region->free_list.Pop();
352 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) {
484 LFStack<Batch> free_list;
513 NOINLINE Batch* PopulateFreeList(AllocatorStats *stat, AllocatorCache *c,
516 Batch *b = region->free_list.Pop();
556 b = (Batch*)c->Allocate(this, SizeClassMap::ClassID(sizeof(Batch)));
558 b = (Batch*)(region_beg + beg_idx);
561 b->batch[i] = (void*)(region_beg + beg_idx + i * size);
687 typedef typename SizeClassMap::TransferBatch Batch;
725 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c,
733 Batch *b = sci->free_list.front();
738 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) {
830 IntrusiveList<Batch> free_list;
831 char padding[kCacheLineSize - sizeof(uptr) - sizeof(IntrusiveList<Batch>)];
867 Batch *b = 0;
871 b = (Batch*)c->Allocate(this, SizeClassMap::ClassID(sizeof(Batch)));
873 b = (Batch*)i;
876 b->batch[b->count++] = (void*)i;
920 void *res = c->batch[--c->count];
921 PREFETCH(c->batch[c->count - 1]);
936 c->batch[c->count++] = p;
949 typedef typename SizeClassMap::TransferBatch Batch;
953 void *batch[2 * SizeClassMap::kMaxNumCached];
970 Batch *b = allocator->AllocateBatch(&stats_, this, class_id);
973 batch[i] = b->batch[i];
976 Deallocate(allocator, SizeClassMap::ClassID(sizeof(Batch)), b);
982 Batch *b;
984 b = (Batch*)Allocate(allocator, SizeClassMap::ClassID(sizeof(Batch)));
986 b = (Batch*)c->batch[0];
989 b->batch[i] = c->batch[i];
990 c->batch[i] = c->batch[i + c->max_count / 2];