From fb826d58ee187ac754d67fc048eef09e8c97171a Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 18 Nov 2017 13:01:12 +0000 Subject: [PATCH] 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 --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }