diff options
author | Koichi Sasada <[email protected]> | 2020-09-11 18:30:27 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-09-15 00:04:59 +0900 |
commit | 74ddac1c822697b442646f433d60e2c099db3c3b (patch) | |
tree | 12267700a22949057b28bbb348105f2a7a42fa74 /vm_sync.c | |
parent | f7ccb8dd88c52b2294742c3abb87098ee4076799 (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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) { |