summaryrefslogtreecommitdiff
path: root/vm_sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_sync.c')
-rw-r--r--vm_sync.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm_sync.c b/vm_sync.c
index d5b25e5221..e3d0ffed15 100644
--- a/vm_sync.c
+++ b/vm_sync.c
@@ -12,7 +12,7 @@ vm_locked(rb_vm_t *vm)
return vm->ractor.sync.lock_owner == GET_RACTOR();
}
-#if VM_CHECK_MODE > 0
+#if RUBY_DEBUG > 0
void
ASSERT_vm_locking(void)
{
@@ -21,9 +21,7 @@ ASSERT_vm_locking(void)
VM_ASSERT(vm_locked(vm));
}
}
-#endif
-#if VM_CHECK_MODE > 0
void
ASSERT_vm_unlocking(void)
{