Lines Matching defs:Slab
67 void BumpPtrAllocator::DeallocateSlabs(MemSlab *Slab) {
68 while (Slab) {
69 MemSlab *NextSlab = Slab->NextPtr;
73 sys::Memory::setRangeWritable(Slab + 1, Slab->Size - sizeof(MemSlab));
74 memset(Slab + 1, 0xCD, Slab->Size - sizeof(MemSlab));
76 Allocator.Deallocate(Slab);
77 Slab = NextSlab;
145 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) {
153 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) {
154 TotalMemory += Slab->Size;
162 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) {
163 TotalMemory += Slab->Size;
179 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0);
180 Slab->Size = Size;
181 Slab->NextPtr = 0;
182 return Slab;
185 void MallocSlabAllocator::Deallocate(MemSlab *Slab) {
186 Allocator.Deallocate(Slab);