summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-18 13:01:12 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-18 13:01:12 (GMT)
commitfb826d58ee187ac754d67fc048eef09e8c97171a (patch)
tree54079babea989db76026d94e41b517518fad7d40 /vm_insnhelper.c
parent26451ab3bab3aff8cee0113405b3c542c2d59b37 (diff)
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
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 5340405..f48cae4 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -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) {
/* disable trace */
- rb_iseq_trace_set(iseq, vm_event_flags);
+ rb_iseq_trace_set(iseq, vm_event_flags & ISEQ_TRACE_EVENTS);
return;
}