Debug alloc info

This commit is contained in:
Justin Ethier 2015-11-26 00:15:43 -05:00
parent a257423999
commit c8d82f899f

4
gc.c
View file

@ -343,7 +343,9 @@ void *gc_alloc(gc_heap *h, size_t size, char *obj, gc_thread_data *thd, int *hea
} }
} }
//#if GC_DEBUG_PRINTFS //#if GC_DEBUG_PRINTFS
fprintf(stdout, "alloc %p size = %d\n", result, size); fprintf(stdout, "alloc %p size = %d, obj=%p, tag=%ld\n", result, size, obj, type_of(obj));
//Cyc_display(obj, stdout);
//fprintf(stdout, "\n");
//#endif //#endif
// TODO: Debug check, remove (ifdef it) once GC is stabilized // TODO: Debug check, remove (ifdef it) once GC is stabilized