diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-08-11 00:18:04 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-08-12 15:30:22 -0700 |
commit | 0afd465e3a1b68abfb133b02cc017a9e224bf9f4 (patch) | |
tree | a75efc11c023c1caf31bbfa809efe6784adf02d4 /gc.c | |
parent | 91a143fae62ba9b06ff85a940a52aec19a3a3ccb (diff) | |
download | txr-0afd465e3a1b68abfb133b02cc017a9e224bf9f4.tar.gz txr-0afd465e3a1b68abfb133b02cc017a9e224bf9f4.tar.bz2 txr-0afd465e3a1b68abfb133b02cc017a9e224bf9f4.zip |
gc: remove #if 0 and #if 1.
* gc.c (mark_obj): Remove material excluded by #if 1.
(gc): Eliminate #if 0 block.
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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) { |