MallocSlabAllocator - The default slab allocator for the bump allocator is an adapter class for MallocAllocator that just forwards the method calls and translates the arguments. More...
#include <Allocator.h>
Public Member Functions | |
MallocSlabAllocator () | |
virtual | ~MallocSlabAllocator () |
virtual MemSlab * | Allocate (size_t Size) |
virtual void | Deallocate (MemSlab *Slab) |
Private Attributes | |
MallocAllocator | Allocator |
Allocator - The underlying allocator that we forward to. |
MallocSlabAllocator - The default slab allocator for the bump allocator is an adapter class for MallocAllocator that just forwards the method calls and translates the arguments.
llvm::MallocSlabAllocator::MallocSlabAllocator | ( | ) | [inline] |
llvm::MallocSlabAllocator::~MallocSlabAllocator | ( | ) | [virtual] |
MemSlab * llvm::MallocSlabAllocator::Allocate | ( | size_t | Size | ) | [virtual] |
Implements llvm::SlabAllocator.
void llvm::MallocSlabAllocator::Deallocate | ( | MemSlab * | Slab | ) | [virtual] |
Implements llvm::SlabAllocator.
Allocator - The underlying allocator that we forward to.