diff options
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_trace.c b/vm_trace.c index b3453b9fb3..d9f0cce563 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -30,6 +30,7 @@ #include "ruby/debug.h" #include "vm_core.h" #include "ruby/ractor.h" +#include "yjit.h" #include "builtin.h" @@ -97,6 +98,8 @@ update_global_event_hook(rb_event_flag_t vm_events) rb_clear_attr_ccs(); } + yjit_tracing_invalidate_all(); + ruby_vm_event_flags = vm_events; ruby_vm_event_enabled_global_flags |= vm_events; rb_objspace_set_event_hook(vm_events); @@ -1212,6 +1215,8 @@ rb_tracepoint_enable_for_target(VALUE tpval, VALUE target, VALUE target_line) rb_raise(rb_eArgError, "can not enable any hooks"); } + yjit_tracing_invalidate_all(); + ruby_vm_event_local_num++; tp->tracing = 1; |