Searched refs:Slab (Results 1 - 4 of 4) sorted by relevance

/macosx-10.10.1/llvmCore-3425.0.34/lib/Support/
H A DAllocator.cpp62 void BumpPtrAllocator::DeallocateSlabs(MemSlab *Slab) { argument
63 while (Slab) {
64 MemSlab *NextSlab = Slab->NextPtr;
68 sys::Memory::setRangeWritable(Slab + 1, Slab->Size - sizeof(MemSlab));
69 memset(Slab + 1, 0xCD, Slab->Size - sizeof(MemSlab));
71 Allocator.Deallocate(Slab);
72 Slab = NextSlab;
133 for (MemSlab *Slab
170 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0); local
176 Deallocate(MemSlab *Slab) argument
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/include/llvm/Support/
H A DAllocator.h68 virtual void Deallocate(MemSlab *Slab) = 0;
83 virtual void Deallocate(MemSlab *Slab) LLVM_OVERRIDE;
134 void DeallocateSlabs(MemSlab *Slab);
204 MemSlab *Slab = Allocator.CurSlab; local
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
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/unittests/Support/
H A DAllocatorTest.cpp119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & local
121 Slab->Size = Size;
122 Slab->NextPtr = 0;
125 ((void**)Slab)[-1] = MemBase;
127 LastSlab = Slab;
128 return Slab;
131 virtual void Deallocate(MemSlab *Slab) { argument
132 free(((void**)Slab)[-1]);
147 MemSlab *Slab = SlabAlloc.GetLastSlab(); local
148 EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab)
[all...]
/macosx-10.10.1/llvmCore-3425.0.34/lib/ExecutionEngine/JIT/
H A DJITMemoryManager.cpp274 virtual void Deallocate(MemSlab *Slab);
583 MemSlab *Slab = (MemSlab*)B.base(); local
584 Slab->Size = B.size();
585 Slab->NextPtr = 0;
586 return Slab;
589 void JITSlabAllocator::Deallocate(MemSlab *Slab) { argument
590 sys::MemoryBlock B(Slab, Slab->Size);

Completed in 177 milliseconds