Fix GC of globals, using new table

This commit is contained in:
Justin Ethier 2015-05-07 16:25:10 -04:00
parent 4b211430c4
commit 836725a88f

View file

@ -1389,11 +1389,11 @@ void GC_loop(int major, closure cont, object *ans, int num_ans)
/* Transport global variables. */ /* Transport global variables. */
transp(Cyc_global_variables); /* Internal global used by the runtime */ transp(Cyc_global_variables); /* Internal global used by the runtime */
{ //JAE TODO: GC_GLOBALS {
list l = global_table; list l = global_table;
for(; !nullp(l); l = cdr(l)){ for(; !nullp(l); l = cdr(l)){
cvar_type *c = (cvar_type *)car(l); cvar_type *c = (cvar_type *)car(l);
transp((c->pvar)); // TODO: proper syntax here? transp(*(c->pvar)); // GC global, not the pvar
} }
} }
while (scanp<allocp) /* Scan the newspace. */ while (scanp<allocp) /* Scan the newspace. */