diff --git a/gc.c b/gc.c index cc891d6a..0364a079 100644 --- a/gc.c +++ b/gc.c @@ -1345,7 +1345,7 @@ void gc_thread_data_init(gc_thread_data *thd, int mut_num, char *stack_base, lon thd->thread_state = CYC_THREAD_STATE_NEW; //thd->mutator_num = mut_num; thd->jmp_start = malloc(sizeof(jmp_buf)); - thd->gc_args = malloc(sizeof(object) * NUM_GC_ANS); + thd->gc_args = malloc(sizeof(object) * NUM_GC_ARGS); thd->gc_num_args = 0; thd->moveBufLen = 0; gc_thr_grow_move_buffer(thd); diff --git a/include/cyclone/types.h b/include/cyclone/types.h index a71998a2..7f55ed4d 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -19,7 +19,7 @@ #include // Maximum number of args that GC will accept -#define NUM_GC_ANS 128 +#define NUM_GC_ARGS 128 // Which way does the CPU grow its stack? #define STACK_GROWTH_IS_DOWNWARD 1 diff --git a/runtime.c b/runtime.c index 033c2c28..9f8b06dd 100644 --- a/runtime.c +++ b/runtime.c @@ -2869,7 +2869,7 @@ int gc_minor(void *data, object low_limit, object high_limit, closure cont, obje //fprintf(stdout, "DEBUG, started minor GC\n"); // JAE DEBUG // Prevent overrunning buffer - if (num_args > NUM_GC_ANS) { + if (num_args > NUM_GC_ARGS) { printf("Fatal error - too many arguments (%d) to GC\n", num_args); exit(1); }