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:
parent
c904844578
commit
0d632a956c
1 changed files with 3 additions and 1 deletions
|
@ -732,6 +732,7 @@ transient_heap_block_evacuate(struct transient_heap* theap, struct transient_hea
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if USE_RUBY_DEBUG_LOG
|
||||||
static const char *
|
static const char *
|
||||||
transient_heap_status_cstr(enum transient_heap_status status)
|
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_marking: return "marking";
|
||||||
case transient_heap_escaping: return "escaping";
|
case transient_heap_escaping: return "escaping";
|
||||||
}
|
}
|
||||||
return NULL; // unreachable;
|
UNREACHABLE_RETURN(NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
transient_heap_update_status(struct transient_heap* theap, enum transient_heap_status status)
|
transient_heap_update_status(struct transient_heap* theap, enum transient_heap_status status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue