SlabAllocator - This class can be used to parameterize the underlying allocation strategy for the bump allocator. More...
#include <Allocator.h>
Public Member Functions | |
virtual | ~SlabAllocator () |
virtual MemSlab * | Allocate (size_t Size)=0 |
virtual void | Deallocate (MemSlab *Slab)=0 |
SlabAllocator - This class can be used to parameterize the underlying allocation strategy for the bump allocator.
In particular, this is used by the JIT to allocate contiguous swathes of executable memory. The interface uses MemSlab's instead of void *'s so that the allocator doesn't have to remember the size of the pointer it allocated.
llvm::SlabAllocator::~SlabAllocator | ( | ) | [virtual] |
virtual MemSlab* llvm::SlabAllocator::Allocate | ( | size_t | Size | ) | [pure virtual] |
Implemented in llvm::MallocSlabAllocator.
virtual void llvm::SlabAllocator::Deallocate | ( | MemSlab * | Slab | ) | [pure virtual] |
Implemented in llvm::MallocSlabAllocator.