From fb389a019f298a844d755f2ae341af207c7dc9a3 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 20 Oct 2015 01:57:16 -0400 Subject: [PATCH] More bug fixes --- include/cyclone/runtime-main.h | 2 +- runtime.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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. */