Searched refs:Slab (Results 1 – 5 of 5) sorted by relevance
62 void BumpPtrAllocator::DeallocateSlabs(MemSlab *Slab) { in DeallocateSlabs() argument63 while (Slab) { in DeallocateSlabs()64 MemSlab *NextSlab = Slab->NextPtr; in DeallocateSlabs()68 sys::Memory::setRangeWritable(Slab + 1, Slab->Size - sizeof(MemSlab)); in DeallocateSlabs()69 memset(Slab + 1, 0xCD, Slab->Size - sizeof(MemSlab)); in DeallocateSlabs()71 Allocator.Deallocate(Slab); in DeallocateSlabs()72 Slab = NextSlab; in DeallocateSlabs()133 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) { in GetNumSlabs() local141 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) { in getTotalMemory() local142 TotalMemory += Slab->Size; in getTotalMemory()[all …]
119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate() local121 Slab->Size = Size; in Allocate()122 Slab->NextPtr = 0; in Allocate()125 ((void**)Slab)[-1] = MemBase; in Allocate()127 LastSlab = Slab; in Allocate()128 return Slab; in Allocate()131 virtual void Deallocate(MemSlab *Slab) { in Deallocate() argument132 free(((void**)Slab)[-1]); in Deallocate()147 MemSlab *Slab = SlabAlloc.GetLastSlab(); in TEST() local148 EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab) + Slab->Size); in TEST()
68 virtual void Deallocate(MemSlab *Slab) = 0;83 virtual void Deallocate(MemSlab *Slab);134 void DeallocateSlabs(MemSlab *Slab);204 MemSlab *Slab = Allocator.CurSlab;205 while (Slab) {206 char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr :207 (char *)Slab + Slab->Size;208 for (char *Ptr = (char*)(Slab+1); Ptr < End; Ptr += sizeof(T)) {213 Slab = Slab->NextPtr;
274 virtual void Deallocate(MemSlab *Slab);583 MemSlab *Slab = (MemSlab*)B.base(); in Allocate() local584 Slab->Size = B.size(); in Allocate()585 Slab->NextPtr = 0; in Allocate()586 return Slab; in Allocate()589 void JITSlabAllocator::Deallocate(MemSlab *Slab) { in Deallocate() argument590 sys::MemoryBlock B(Slab, Slab->Size); in Deallocate()
38 Slab: 583660 kB