MJIT: Remove obsoleted MJIT counters

This commit is contained in:
Takashi Kokubun 2022-12-06 23:01:30 -08:00
parent 12916e283f
commit 57cb4a8179
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
5 changed files with 1 additions and 77 deletions

View file

@ -56,17 +56,7 @@ void
ruby_debug_counter_reset(void)
{
for (int i = 0; i < RB_DEBUG_COUNTER_MAX; i++) {
switch (i) {
case RB_DEBUG_COUNTER_mjit_length_unit_queue:
case RB_DEBUG_COUNTER_mjit_length_active_units:
case RB_DEBUG_COUNTER_mjit_length_compact_units:
case RB_DEBUG_COUNTER_mjit_length_stale_units:
// These counters may be decreased and should not be reset.
break;
default:
rb_debug_counter[i] = 0;
break;
}
rb_debug_counter[i] = 0;
}
}