ruby-changes:62421
From: Nobuyoshi <ko1@a...>
Date: Wed, 29 Jul 2020 21:09:13 +0900 (JST)
Subject: [ruby-changes:62421] 0d632a956c (master): transient_heap_status_cstr() is used only for debugging
https://git.ruby-lang.org/ruby.git/commit/?id=0d632a956c From 0d632a956cc4a58457d78f884ff62ca8605056e2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Jul 2020 21:08:48 +0900 Subject: transient_heap_status_cstr() is used only for debugging diff --git a/transient_heap.c b/transient_heap.c index c626f8d..aa0d8de 100644 --- a/transient_heap.c +++ b/transient_heap.c @@ -732,6 +732,7 @@ transient_heap_block_evacuate(struct transient_heap* theap, struct transient_hea https://github.com/ruby/ruby/blob/trunk/transient_heap.c#L732 } } +#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) https://github.com/ruby/ruby/blob/trunk/transient_heap.c#L741 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/