Home
last modified time | relevance | path

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

/external/swiftshader/third_party/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/swiftshader/third_party/LLVM/unittests/Support/
DAllocatorTest.cpp111 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate() local
113 Slab->Size = Size; in Allocate()
114 Slab->NextPtr = 0; in Allocate()
117 ((void**)Slab)[-1] = MemBase; in Allocate()
119 LastSlab = Slab; in Allocate()
120 return Slab; in Allocate()
123 virtual void Deallocate(MemSlab *Slab) { in Deallocate() argument
124 free(((void**)Slab)[-1]); in Deallocate()
139 MemSlab *Slab = SlabAlloc.GetLastSlab(); in TEST() local
140 EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab) + Slab->Size); in TEST()
/external/swiftshader/third_party/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/unittests/Support/
DAllocatorTest.cpp153 void *Slab = (void *)alignAddr((char*)MemBase + sizeof(void *), Alignment); in Allocate() local
156 ((void**)Slab)[-1] = MemBase; in Allocate()
159 return Slab; in Allocate()
162 void Deallocate(void *Slab, size_t Size) { in Deallocate() argument
163 free(((void**)Slab)[-1]); in Deallocate()
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/JIT/
DJITMemoryManager.cpp262 virtual void Deallocate(MemSlab *Slab);
519 MemSlab *Slab = (MemSlab*)B.base(); in Allocate() local
520 Slab->Size = B.size(); in Allocate()
521 Slab->NextPtr = 0; in Allocate()
522 return Slab; in Allocate()
525 void JITSlabAllocator::Deallocate(MemSlab *Slab) { in Deallocate() argument
526 sys::MemoryBlock B(Slab, Slab->Size); in Deallocate()
/external/regex-re2/benchlog/
Dbenchlog.r7038 Slab: 583660 kB