summaryrefslogtreecommitdiff
path: root/vm_sync.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-09-11 18:30:27 +0900
committerKoichi Sasada <ko1@atdot.net>2020-09-15 00:04:59 +0900
commit74ddac1c822697b442646f433d60e2c099db3c3b (patch)
tree12267700a22949057b28bbb348105f2a7a42fa74 /vm_sync.c
parentf7ccb8dd88c52b2294742c3abb87098ee4076799 (diff)
relax dependency
vm_sync.h does not need to include vm_core.h and ractor_pub.h.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3534
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)
{