mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Debugging
This commit is contained in:
parent
f5c60589b0
commit
d13327cfd4
1 changed files with 4 additions and 4 deletions
8
gc.c
8
gc.c
|
@ -499,10 +499,10 @@ size_t gc_sweep(gc_heap *h, size_t *sum_freed_ptr)
|
|||
|
||||
if (mark(p) == gc_color_clear) {
|
||||
#if GC_DEBUG_PRINTFS
|
||||
//fprintf(stdout, "sweep: object is not marked %p\n", p);
|
||||
fprintf(stdout, "sweeping obj: %p ", p);
|
||||
Cyc_display(p, stdout);
|
||||
fprintf(stdout, "\n");
|
||||
fprintf(stdout, "sweep: object is not marked %p\n", p);
|
||||
//fprintf(stdout, "sweep is freeing obj: %p ", p);
|
||||
//Cyc_display(p, stdout);
|
||||
//fprintf(stdout, "\n");
|
||||
#endif
|
||||
mark(p) = gc_color_blue; // Needed?
|
||||
// free p
|
||||
|
|
Loading…
Add table
Reference in a new issue