Public Member Functions | |
void * | bump_alloc (size_t size) |
size_t | free_block () const |
size_t | grow_spans (size_t needed, bool preallocating) |
void | list_arenas (ArenaList &arenas) |
size_t | totalmem () const |
BumpAllocator - satisfy allocations by bumping an offset into mmap based spans. This allocator satisfies allocation requests from pre-allocated mmap regions. The regions support transparent huge pages and are setup to allow upwards growth instead of accumulating a long list of individual mappings. As long as enough pre-allocated memory is available, allocation requests are served via a single lock-free offset increment. Atm, no memory is released back to the OS ever.
void * bump_alloc | ( | size_t | size | ) |
size_t grow_spans | ( | size_t | needed, |
bool | preallocating | ||
) |
size_t free_block | ( | ) | const |
void list_arenas | ( | ArenaList & | arenas | ) |
size_t totalmem | ( | ) | const |