aboutsummaryrefslogtreecommitdiffstats
path: root/transient_heap.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-29 21:08:48 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-07-29 21:08:48 +0900
commit0d632a956cc4a58457d78f884ff62ca8605056e2 (patch)
treedc4b17c7aad1401cd956f31d77832be6bafe4515 /transient_heap.c
parentc904844578745859e275fbcc79264ef737457f36 (diff)
downloadruby-0d632a956cc4a58457d78f884ff62ca8605056e2.tar.gz
transient_heap_status_cstr() is used only for debugging
Diffstat (limited to 'transient_heap.c')
-rw-r--r--transient_heap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/transient_heap.c b/transient_heap.c
index c626f8d6b8..aa0d8de010 100644
--- a/transient_heap.c
+++ b/transient_heap.c
@@ -732,6 +732,7 @@ transient_heap_block_evacuate(struct transient_heap* theap, struct transient_hea
}
}
+#if USE_RUBY_DEBUG_LOG
static const char *
transient_heap_status_cstr(enum transient_heap_status status)
{
@@ -740,8 +741,9 @@ transient_heap_status_cstr(enum transient_heap_status status)
case transient_heap_marking: return "marking";
case transient_heap_escaping: return "escaping";
}
- return NULL; // unreachable;
+ UNREACHABLE_RETURN(NULL);
}
+#endif
static void
transient_heap_update_status(struct transient_heap* theap, enum transient_heap_status status)