[ruby-cvs:71606] ko1:r64514 (trunk): check trace flags at loading [Bug #14702]

ko1 at ruby-lang.org ko1 at ruby-lang.org
Thu Aug 23 13:12:14 JST 2018


ko1	2018-08-23 13:12:14 +0900 (Thu, 23 Aug 2018)

  New Revision: 64514

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

  Log:
    check trace flags at loading [Bug #14702]
    
    * iseq.c (iseq_init_trace): at ISeq loading time, we need to check
      `ruby_vm_event_enabled_flags` to turn on trace instructions.
      Seprate this checking code from `finish_iseq_build()` and make
      new function. `iseq_ibf_load()` calls this funcation after loading.
    
    * test/ruby/test_iseq.rb: add a test for this fix.

  Modified files:
    trunk/compile.c
    trunk/iseq.c
    trunk/iseq.h
    trunk/test/ruby/test_iseq.rb


More information about the ruby-cvs mailing list