From b3f8c491efefc0461ab225d062f6c64286498609 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 12 Aug 2021 22:54:40 -0700 Subject: Print JIT cancel when all JIT-ed code is cancelled --- vm_trace.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vm_trace.c') 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); -- cgit v1.2.3