12 #ifndef SSTMAC_SOFTWARE_THREADING_STACKALLOC_H_INCLUDED 13 #define SSTMAC_SOFTWARE_THREADING_STACKALLOC_H_INCLUDED virtual ~stack_alloc()
Goodbye.
void init(size_t stacksize, size_t alloc_unit, bool use_mprot)
bool use_mprot_
Do we want stacks separated by an mprot region?
A management type to handle dividing mmap-ed memory for use as ucontext stack(s). ...
std::vector< chunk * > chunk_vec_t
This is where we store the memory regions.
std::vector< void * > available_vec_t
This is our list of un-allocated chunks:
A chunk of allocated memory to be divided into fixed-size stacks.
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
available_vec_t available_
void * alloc()
Get a stack memory region.
void free(void *)
Return the given memory region.
size_t suggested_chunk_
Each chunk is of this suggested size.
size_t stacksize_
Each stack request is of this size: