[ruby-cvs:67998] ko1:r60817 (trunk): remove `trace_` prefix insns lazily.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Nov 17 15:24:55 JST 2017


ko1	2017-11-17 15:24:55 +0900 (Fri, 17 Nov 2017)

  New Revision: 60817

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60817

  Log:
    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).

  Modified files:
    trunk/iseq.c
    trunk/iseq.h
    trunk/vm_insnhelper.c
    trunk/vm_trace.c


More information about the ruby-cvs mailing list