aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 14:11:19 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-23 14:11:19 +0000
commitde164e02a0f565cf5965338e76f2ce9bcdf86e3e (patch)
tree0d2ffded9f46497fa10af1a2bc7193750fba49ec /iseq.c
parent3ec6bc5e36bb6c79305fb962d395f8a003753d74 (diff)
downloadruby-de164e02a0f565cf5965338e76f2ce9bcdf86e3e.tar.gz
mjit.c: disable calling JIT-ed code
when TracePoint is enabled. We're cancelling JIT-ed code execution AFTER each instruction, but there is no guard before the first insn of method. To prevent spoiling performance, I don't want to modify the JIT-ed code to fix this. So this commit replaces `mjit_enabled` check with `mjit_call_p` check. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index f64177dc5b..7744e3f54f 100644
--- a/iseq.c
+++ b/iseq.c
@@ -2899,6 +2899,8 @@ rb_iseq_trace_set_all(rb_event_flag_t turnon_events)
rb_objspace_each_objects(trace_set_i, &turnon_events);
}
+/* This is exported since Ruby 2.5 but not internally used for now. If you're going to use this, please
+ update `ruby_vm_event_enabled_flags` and set `mjit_call_p = FALSE` as well to cancel MJIT code. */
void
rb_iseq_trace_on_all(void)
{