Home
last modified time | relevance | path

Searched refs:Slab (Results 1 – 5 of 5) sorted by relevance

/external/llvm/lib/Support/
DAllocator.cpp62 void BumpPtrAllocator::DeallocateSlabs(MemSlab *Slab) { in DeallocateSlabs() argument
63 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() local
141 for (MemSlab *Slab = CurSlab; Slab != 0; Slab = Slab->NextPtr) { in getTotalMemory() local
142 TotalMemory += Slab->Size; in getTotalMemory()
[all …]
/external/llvm/unittests/Support/
DAllocatorTest.cpp119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate() local
121 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() argument
132 free(((void**)Slab)[-1]); in Deallocate()
147 MemSlab *Slab = SlabAlloc.GetLastSlab(); in TEST() local
148 EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab) + Slab->Size); in TEST()
/external/llvm/include/llvm/Support/
DAllocator.h68 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;
/external/llvm/lib/ExecutionEngine/JIT/
DJITMemoryManager.cpp274 virtual void Deallocate(MemSlab *Slab);
583 MemSlab *Slab = (MemSlab*)B.base(); in Allocate() local
584 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() argument
590 sys::MemoryBlock B(Slab, Slab->Size); in Deallocate()
/external/regex-re2/benchlog/
Dbenchlog.r7038 Slab: 583660 kB