[ruby-cvs:68303] ko1:r61122 (trunk): do not disable `trace_` prefix insns.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Tue Dec 12 04:17:25 JST 2017


ko1	2017-12-12 04:17:25 +0900 (Tue, 12 Dec 2017)

  New Revision: 61122

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

  Log:
    do not disable `trace_` prefix insns.
    
    * vm.c: introduce `ruby_vm_event_enabled_flags` which represents which
      event flags are enabled before.
    
    * vm_trace.c: do not turn off `trace_` prefix instructions because turn on
      overhead is a matter if a program repeats turn on and turn off frequently.
    
    * iseq.c (finish_iseq_build): respect `ruby_vm_event_enabled_flags`.
    
    * vm_insnhelper.c (vm_trace): check `ruby_vm_event_flags` and disable
      lazy trace-off technique (do not disable traces).

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


More information about the ruby-cvs mailing list