aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index ab74a066d9..c3e2a5d98a 100644
--- a/mjit.c
+++ b/mjit.c
@@ -109,9 +109,7 @@ mjit_gc_exit_hook(void)
return;
CRITICAL_SECTION_START(4, "mjit_gc_exit_hook");
in_gc--;
- if (in_gc < 0) { // Don't allow underflow
- in_gc = 0;
- }
+ RUBY_ASSERT_ALWAYS(in_gc >= 0);
if (!in_gc) {
verbose(4, "Sending wakeup signal to workers after GC");
rb_native_cond_broadcast(&mjit_gc_wakeup);