summaryrefslogtreecommitdiff
path: root/vm_sync.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-05 05:42:44 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-07 08:28:36 +0900
commit1d0bf3d8dd8de40d498a7c2784a84aa566d290b9 (patch)
tree8840320772a4902663f49941908eb2c69295553b /vm_sync.c
parent554a7180a0aad85bee5cb8ed41d99d16dab304e7 (diff)
log for the beggining of vm_lock_enter
Before this patch, there is no information to start locking.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3842
Diffstat (limited to 'vm_sync.c')
-rw-r--r--vm_sync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_sync.c b/vm_sync.c
index 8eb2cdf1e9..0a14d5394c 100644
--- a/vm_sync.c
+++ b/vm_sync.c
@@ -41,6 +41,8 @@ rb_vm_locked_p(void)
static void
vm_lock_enter(rb_ractor_t *cr, rb_vm_t *vm, bool locked, unsigned int *lev APPEND_LOCATION_ARGS)
{
+ RUBY_DEBUG_LOG2(file, line, "start locked:%d", locked);
+
if (locked) {
ASSERT_vm_locking();
}