Project

General

Profile

« Previous | Next » 

Revision 1a960576

Added by ko1 (Koichi Sasada) over 7 years ago

remove trace_ prefix insns lazily.

  • vm_trace.c (update_global_event_hook): set only when tracing is added.
    If tracing was off (event flags are decreased), then ignore them.
    Next trace_ prefix instruction will trace off itself (lazy tracing off).

  • vm_insnhelper.c (vm_trace): trace-off for when trace is not needed.

  • iseq.c (rb_iseq_trace_set): fix trace-off process (it was never off tracing).

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e