ruby-changes:48723
From: ko1 <ko1@a...>
Date: Sat, 18 Nov 2017 22:01:17 +0900 (JST)
Subject: [ruby-changes:48723] ko1:r60839 (trunk): call only with ISEQ_TRACE_EVENTS.
ko1 2017-11-18 22:01:12 +0900 (Sat, 18 Nov 2017) New Revision: 60839 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60839 Log: call only with ISEQ_TRACE_EVENTS. * vm_insnhelper.c (vm_trace): rb_iseq_trace_set() only accepts ISEQ_TRACE_EVENTS. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 60838) +++ vm_insnhelper.c (revision 60839) @@ -3735,7 +3735,7 @@ vm_trace(rb_execution_context_t *ec, rb_ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3735 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; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/