Cyclone Scheme  0.4

◆ gc_heap_create()

gc_heap* gc_heap_create ( int  heap_type,
size_t  size,
size_t  max_size,
size_t  chunk_size,
gc_thread_data thd 
)

Create a new heap page. The caller must hold the necessary locks.

Parameters
heap_typeDefine the size of objects that will be allocated on this heap
sizeRequested size (unpadded) of the heap
max_sizeDefine the heap page max size parameter
chunk_sizeDefine the heap chunk size parameter
thdCalling mutator's thread data object
Returns
Pointer to the newly allocated heap page, or NULL if the allocation failed.