diff --git a/include/cyclone/runtime-main.h b/include/cyclone/runtime-main.h index 012ece81..c26a0f81 100644 --- a/include/cyclone/runtime-main.h +++ b/include/cyclone/runtime-main.h @@ -57,7 +57,7 @@ static void Cyc_main (stack_size,heap_size,stack_base) printf("main: Allocating and initializing heap...\n"); #endif - Cyc_heap = gc_heap_create(heap_size, 0); + Cyc_heap = gc_heap_create(heap_size, 0, 0); Cyc_thread = (gc_thread_data *)malloc(sizeof(gc_thread_data)); Cyc_thread->moveBufLen = 0; gc_thr_grow_move_buffer(Cyc_thread); // Initialize the buffer diff --git a/runtime.c b/runtime.c index e3cb758a..a60e70a8 100644 --- a/runtime.c +++ b/runtime.c @@ -76,6 +76,8 @@ void Cyc_check_bounds(const char *label, int len, int index) { /*END closcall section */ /* Global variables. */ +gc_heap *Cyc_heap; +gc_thread_data *Cyc_thread; clock_t start; /* Starting time. */ char *stack_begin; /* Initialized by main. */ char *stack_limit1; /* Initialized by main. */