1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

transient_heap_status_cstr() is used only for debugging

This commit is contained in:
Nobuyoshi Nakada 2020-07-29 21:08:48 +09:00
parent c904844578
commit 0d632a956c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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)