diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 13:01:12 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 13:01:12 +0000 |
commit | fb826d58ee187ac754d67fc048eef09e8c97171a (patch) | |
tree | 54079babea989db76026d94e41b517518fad7d40 /vm_insnhelper.c | |
parent | 26451ab3bab3aff8cee0113405b3c542c2d59b37 (diff) | |
download | ruby-fb826d58ee187ac754d67fc048eef09e8c97171a.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 5340405236..f48cae45ae 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; } |