This commit is contained in:
Justin Ethier 2017-02-28 00:12:12 -05:00
parent b9253bb1d8
commit f2545f5ae2
2 changed files with 5 additions and 1 deletions

View file

@ -315,7 +315,7 @@ void *gc_alloc(gc_heap_root * h, size_t size, char *obj, gc_thread_data * thd,
void *gc_alloc_bignum(gc_thread_data *data);
size_t gc_allocated_bytes(object obj, gc_free_list * q, gc_free_list * r);
gc_heap *gc_heap_last(gc_heap * h);
size_t gc_heap_total_size(gc_heap * h);
//size_t gc_heap_total_size(gc_heap * h);
//size_t gc_heap_total_free_size(gc_heap *h);
//size_t gc_collect(gc_heap *h, size_t *sum_freed);
//void gc_mark(gc_heap *h, object obj);

View file

@ -259,6 +259,10 @@ static bool set_insert(ck_hs_t * hs, const void *value)
// End supporting functions
/**
* @brief Perform one-time heap initializations for the program
* @param heap_size Unused
*/
void gc_init_heap(long heap_size)
{
if (!ck_hs_init(&symbol_table,