SST/macro
|
A chunk of allocated memory to be divided into fixed-size stacks. More...
#include <stack_alloc_chunk.h>
Public Member Functions | |
chunk (size_t stacksize, size_t suggested_chunk_size, bool use_mprot) | |
Make a new chunk. More... | |
~chunk () | |
Goodbye. More... | |
void * | get_next_stack () |
Private Attributes | |
char * | addr_ |
The base address of my memory region. More... | |
size_t | size_ |
The total size of my allocation. More... | |
size_t | stacksize_ |
The target size of each open (unprotected) stack region. More... | |
bool | use_mprot_ |
Are we putting mprot pages between allocations or not? More... | |
size_t | next_stack_ |
Next stack (for get_next_stack). More... | |
A chunk of allocated memory to be divided into fixed-size stacks.
Definition at line 27 of file stack_alloc_chunk.h.
sstmac::sw::stack_alloc::chunk::chunk | ( | size_t | stacksize, |
size_t | suggested_chunk_size, | ||
bool | use_mprot | ||
) |
Make a new chunk.
sstmac::sw::stack_alloc::chunk::~chunk | ( | ) |
Goodbye.
void* sstmac::sw::stack_alloc::chunk::get_next_stack | ( | ) |
|
private |
The base address of my memory region.
Definition at line 30 of file stack_alloc_chunk.h.
|
private |
Next stack (for get_next_stack).
Definition at line 38 of file stack_alloc_chunk.h.
|
private |
The total size of my allocation.
Definition at line 32 of file stack_alloc_chunk.h.
|
private |
The target size of each open (unprotected) stack region.
Definition at line 34 of file stack_alloc_chunk.h.
|
private |
Are we putting mprot pages between allocations or not?
Definition at line 36 of file stack_alloc_chunk.h.