More bug fixes

This commit is contained in:
Justin Ethier 2015-10-20 01:57:16 -04:00
parent 20e71fff3b
commit fb389a019f
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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. */