Home | History | Annotate | Download | only in sanitizer_common

Lines Matching defs:batch

101   // For large size classes we use one of the chunks to store the batch.
105 void *batch[kMaxNumCached];
303 typedef typename SizeClassMap::TransferBatch Batch;
329 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c,
333 Batch *b = region->free_list.Pop();
340 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) {
474 LFStack<Batch> free_list;
502 NOINLINE Batch* PopulateFreeList(AllocatorStats *stat, AllocatorCache *c,
505 Batch *b = region->free_list.Pop();
545 b = (Batch*)c->Allocate(this, SizeClassMap::ClassID(sizeof(Batch)));
547 b = (Batch*)(region_beg + beg_idx);
550 b->batch[i] = (void*)(region_beg + beg_idx + i * size);
588 typedef typename SizeClassMap::TransferBatch Batch;
625 NOINLINE Batch* AllocateBatch(AllocatorStats *stat, AllocatorCache *c,
633 Batch *b = sci->free_list.front();
638 NOINLINE void DeallocateBatch(AllocatorStats *stat, uptr class_id, Batch *b) {
734 IntrusiveList<Batch> free_list;
735 char padding[kCacheLineSize - sizeof(uptr) - sizeof(IntrusiveList<Batch>)];
772 Batch *b = 0;
776 b = (Batch*)c->Allocate(this, SizeClassMap::ClassID(sizeof(Batch)));
778 b = (Batch*)i;
781 b->batch[b->count++] = (void*)i;
828 void *res = c->batch[--c->count];
829 PREFETCH(c->batch[c->count - 1]);
844 c->batch[c->count++] = p;
857 typedef typename SizeClassMap::TransferBatch Batch;
861 void *batch[2 * SizeClassMap::kMaxNumCached];
878 Batch *b = allocator->AllocateBatch(&stats_, this, class_id);
881 c->batch[i] = b->batch[i];
884 Deallocate(allocator, SizeClassMap::ClassID(sizeof(Batch)), b);
890 Batch *b;
892 b = (Batch*)Allocate(allocator, SizeClassMap::ClassID(sizeof(Batch)));
894 b = (Batch*)c->batch[0];
897 b->batch[i] = c->batch[i];
898 c->batch[i] = c->batch[i + c->max_count / 2];