mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-13 07:47:39 +02:00
Cleanup
This commit is contained in:
parent
b9253bb1d8
commit
f2545f5ae2
2 changed files with 5 additions and 1 deletions
|
@ -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);
|
void *gc_alloc_bignum(gc_thread_data *data);
|
||||||
size_t gc_allocated_bytes(object obj, gc_free_list * q, gc_free_list * r);
|
size_t gc_allocated_bytes(object obj, gc_free_list * q, gc_free_list * r);
|
||||||
gc_heap *gc_heap_last(gc_heap * h);
|
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_heap_total_free_size(gc_heap *h);
|
||||||
//size_t gc_collect(gc_heap *h, size_t *sum_freed);
|
//size_t gc_collect(gc_heap *h, size_t *sum_freed);
|
||||||
//void gc_mark(gc_heap *h, object obj);
|
//void gc_mark(gc_heap *h, object obj);
|
||||||
|
|
|
@ -259,6 +259,10 @@ static bool set_insert(ck_hs_t * hs, const void *value)
|
||||||
|
|
||||||
// End supporting functions
|
// End supporting functions
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Perform one-time heap initializations for the program
|
||||||
|
* @param heap_size Unused
|
||||||
|
*/
|
||||||
void gc_init_heap(long heap_size)
|
void gc_init_heap(long heap_size)
|
||||||
{
|
{
|
||||||
if (!ck_hs_init(&symbol_table,
|
if (!ck_hs_init(&symbol_table,
|
||||||
|
|
Loading…
Add table
Reference in a new issue