summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-08-12 22:54:40 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2021-08-12 23:11:38 -0700
commitb3f8c491efefc0461ab225d062f6c64286498609 (patch)
tree5d3fbb4fe76d37f91bafbdb4b5fff9ce28d8f7ce /vm_trace.c
parent1a16940291301ace49cba0f37154a67033ab27c0 (diff)
Print JIT cancel when all JIT-ed code is cancelled
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 398ca97de3..b603293d34 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -81,10 +81,8 @@ update_global_event_hook(rb_event_flag_t vm_events)
rb_event_flag_t enabled_iseq_events = ruby_vm_event_enabled_global_flags & ISEQ_TRACE_EVENTS;
if (new_iseq_events & ~enabled_iseq_events) {
- /* Stop calling all JIT-ed code. Compiling trace insns is not supported for now. */
-#if USE_MJIT
- mjit_call_p = FALSE;
-#endif
+ // Stop calling all JIT-ed code. We can't rewrite existing JIT-ed code to trace_ insns for now.
+ mjit_cancel_all("TracePoint is enabled");
/* write all ISeqs if and only if new events are added */
rb_iseq_trace_set_all(new_iseq_events | enabled_iseq_events);