1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

call only with ISEQ_TRACE_EVENTS.

* vm_insnhelper.c (vm_trace): rb_iseq_trace_set() only accepts
  ISEQ_TRACE_EVENTS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-11-18 13:01:12 +00:00
parent 26451ab3ba
commit fb826d58ee

View file

@ -3735,7 +3735,7 @@ vm_trace(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, const VALUE *p
if ((events & vm_event_flags) == 0) { if ((events & vm_event_flags) == 0) {
/* disable trace */ /* disable trace */
rb_iseq_trace_set(iseq, vm_event_flags); rb_iseq_trace_set(iseq, vm_event_flags & ISEQ_TRACE_EVENTS);
return; return;
} }