From a257423999ae44f0704b5ff3f0c5715c175ca8f1 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 25 Nov 2015 23:54:16 -0500 Subject: [PATCH] More debugging --- gc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gc.c b/gc.c index f76c7479..680b4ea3 100644 --- a/gc.c +++ b/gc.c @@ -342,9 +342,9 @@ void *gc_alloc(gc_heap *h, size_t size, char *obj, gc_thread_data *thd, int *hea exit(1); // TODO: throw error??? } } -#if GC_DEBUG_PRINTFS +//#if GC_DEBUG_PRINTFS fprintf(stdout, "alloc %p size = %d\n", result, size); -#endif +//#endif // TODO: Debug check, remove (ifdef it) once GC is stabilized if (is_value_type(result)) { @@ -511,7 +511,7 @@ 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, "sweep is freeing obj: %p with tag %d\n", p, type_of(p)); + fprintf(stdout, "sweep is freeing obj: %p with tag %ld\n", p, type_of(p)); //#endif mark(p) = gc_color_blue; // Needed? // free p