From 0afd465e3a1b68abfb133b02cc017a9e224bf9f4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 11 Aug 2019 00:18:04 -0700 Subject: gc: remove #if 0 and #if 1. * gc.c (mark_obj): Remove material excluded by #if 1. (gc): Eliminate #if 0 block. --- gc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/gc.c b/gc.c index 4c8d9f6d..526e4a5c 100644 --- a/gc.c +++ b/gc.c @@ -309,12 +309,8 @@ static void mark_obj(val obj) { type_t t; -#if 1 tail_call: #define mark_obj_tail(o) do { obj = (o); goto tail_call; } while (0) -#else -#define mark_obj_tail(o) return mark_obj(o) -#endif if (!is_ptr(obj)) return; @@ -760,10 +756,6 @@ void gc(void) prepare_finals(); swept = sweep(); #if CONFIG_GEN_GC -#if 0 - printf("sweep: freed %d full_gc == %d exhausted == %d\n", - (int) swept, full_gc, exhausted); -#endif if (++gc_counter >= FULL_GC_INTERVAL || freshobj_idx >= FRESHOBJ_VEC_SIZE) { -- cgit v1.2.3