diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-12-19 06:38:58 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-12-22 00:03:00 +0900 |
commit | a2950369bd8a5866092f6badf59b0811653a6092 (patch) | |
tree | b8933f0f3f87618c04290e420222daef3a63e68d /vm_insnhelper.c | |
parent | c7a5cc2c3098ea74343a0dbab36b3a65bc7a4144 (diff) |
TracePoint.new(&block) should be ractor-local
TracePoint should be ractor-local because the Proc can violate the
Ractor-safe.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3943
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b1673db067..90c68d6a56 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -5308,7 +5308,7 @@ vm_trace(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp) return; } else { - rb_hook_list_t *global_hooks = rb_vm_global_hooks(ec); + rb_hook_list_t *global_hooks = rb_ec_ractor_hooks(ec); if (0) { fprintf(stderr, "vm_trace>>%4d (%4x) - %s:%d %s\n", |