summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-08-11 00:18:04 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-08-11 00:18:04 -0700
commit4e7ae99010809eda060736f65daa620f1bf87f04 (patch)
treea75efc11c023c1caf31bbfa809efe6784adf02d4
parenta511aae95c49d2e76dc308f9251ddd276212634e (diff)
downloadtxr-4e7ae99010809eda060736f65daa620f1bf87f04.tar.gz
txr-4e7ae99010809eda060736f65daa620f1bf87f04.tar.bz2
txr-4e7ae99010809eda060736f65daa620f1bf87f04.zip
gc: remove #if 0 and #if 1.
* gc.c (mark_obj): Remove material excluded by #if 1. (gc): Eliminate #if 0 block.
-rw-r--r--gc.c8
1 files changed, 0 insertions, 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)
{