Cyclone Scheme  0.9
gc_heap* gc_sweep ( gc_heap h,
int  heap_type,
gc_thread_data thd 
)

Sweep portion of the GC algorithm.

Parameters
hHeap to sweep
heap_typeType of heap, based on object sizes allocated on it
thdThread data object for the mutator using this heap
Returns
Pointer to the heap, or NULL if heap is to be freed

This portion of the major GC algorithm is responsible for returning unused memory slots to the heap. It is only called by the allocator to free up space after the heap has been traced to identify live objects.