[ruby-cvs:73325] nagachika:r66225 (ruby_2_5): merge revision(s) 64736, 65567: [Backport #15270]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Wed Dec 5 23:35:07 JST 2018


nagachika	2018-12-05 23:35:07 +0900 (Wed, 05 Dec 2018)

  New Revision: 66225

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

  Log:
    merge revision(s) 64736,65567: [Backport #15270]
    
    iseq.c: prefix rb_ to non-static iseq functions
    
    I assume we always prefix rb_ to non-static functions to avoid conflict.
    These functions are not exported and safe to be renamed.
    
    iseq.h: ditto
    compile.c: ditto
    
    Fix TracePoint for nested iseq loaded from binary [Bug#14702]
    
    When loading iseq from binary while a TracePoint is on, we need to
    recompile instructions to their "trace_" variant. Before this commit
    we only recompiled instructions in the top level iseq, which meant
    that TracePoint was malfunctioning for code inside module/class/method
    definitions.
    
    * compile.c: Move rb_iseq_init_trace to rb_ibf_load_iseq_complete.
      It is called on all iseqs during loading.
    
    * test_iseq.rb: Test that tracepoints fire within children iseq when
      using load_from_binary.
    
    This patch is from: Alan Wu <XrXr at users.noreply.github.com>

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/compile.c
    branches/ruby_2_5/iseq.c
    branches/ruby_2_5/iseq.h
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list