mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-25 13:05:05 +02:00
More bug fixes
This commit is contained in:
parent
20e71fff3b
commit
fb389a019f
2 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,7 @@ static void Cyc_main (stack_size,heap_size,stack_base)
|
||||||
printf("main: Allocating and initializing heap...\n");
|
printf("main: Allocating and initializing heap...\n");
|
||||||
#endif
|
#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 = (gc_thread_data *)malloc(sizeof(gc_thread_data));
|
||||||
Cyc_thread->moveBufLen = 0;
|
Cyc_thread->moveBufLen = 0;
|
||||||
gc_thr_grow_move_buffer(Cyc_thread); // Initialize the buffer
|
gc_thr_grow_move_buffer(Cyc_thread); // Initialize the buffer
|
||||||
|
|
|
@ -76,6 +76,8 @@ void Cyc_check_bounds(const char *label, int len, int index) {
|
||||||
/*END closcall section */
|
/*END closcall section */
|
||||||
|
|
||||||
/* Global variables. */
|
/* Global variables. */
|
||||||
|
gc_heap *Cyc_heap;
|
||||||
|
gc_thread_data *Cyc_thread;
|
||||||
clock_t start; /* Starting time. */
|
clock_t start; /* Starting time. */
|
||||||
char *stack_begin; /* Initialized by main. */
|
char *stack_begin; /* Initialized by main. */
|
||||||
char *stack_limit1; /* Initialized by main. */
|
char *stack_limit1; /* Initialized by main. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue