mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 17:27:33 +02:00
Debug alloc info
This commit is contained in:
parent
a257423999
commit
c8d82f899f
1 changed files with 3 additions and 1 deletions
4
gc.c
4
gc.c
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue