This is the base source of memory for all allocators. More...
#include <mem.h>
Inherited by GaloisRuntime::MM::FreeListHeap< GaloisRuntime::MM::SystemBaseAlloc >.
Public Types | |
enum | { AllocSize = SelfLockFreeListHeap<mmapWrapper>::AllocSize } |
Public Member Functions | |
SystemBaseAlloc () | |
~SystemBaseAlloc () | |
void * | allocate (unsigned int size) |
void | deallocate (void *ptr) |
Static Private Attributes | |
static SelfLockFreeListHeap < mmapWrapper > | Source |
This is the base source of memory for all allocators.
It maintains a freelist of hunks acquired from the system
SystemBaseAlloc::SystemBaseAlloc | ( | ) |
SystemBaseAlloc::~SystemBaseAlloc | ( | ) |
void* GaloisRuntime::MM::SystemBaseAlloc::allocate | ( | unsigned int | size | ) | [inline] |
void GaloisRuntime::MM::SystemBaseAlloc::deallocate | ( | void * | ptr | ) | [inline] |
SelfLockFreeListHeap< mmapWrapper > SystemBaseAlloc::Source [static, private] |