Cyclone Scheme  0.28.0

◆ gc_grow_heap()

gc_heap* gc_grow_heap ( gc_heap h,
size_t  size,
gc_thread_data thd 
)

Grow a heap by allocating a new page.

Parameters
hHeap to be expanded
sizeNot applicable, can set to 0
thdThread data for the mutator using this heap
Returns
A true value if the heap was grown, or 0 otherwise

Heaps are increased in size by adding a newly-allocated page at the end of the heap's linked list.

Page size is determined by starting at the minimum page size and increasing size using the Fibonnaci Sequence until reaching the max size.