[ruby-cvs:56835] ktsj:r49685 (trunk): * vm_insnhelper.c (rb_vm_rewrite_cref_stack): copy nd_refinements

ktsj at ruby-lang.org ktsj at ruby-lang.org
Sun Feb 22 16:05:15 JST 2015


ktsj	2015-02-22 16:05:14 +0900 (Sun, 22 Feb 2015)

  New Revision: 49685

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

  Log:
    * vm_insnhelper.c (rb_vm_rewrite_cref_stack): copy nd_refinements
      of orignal crefs. It fixes segmentation fault when calling
      refined method in duplicate module. [ruby-dev:48878] [Bug #10885]
    
    * vm_core.h, class.c: change accordingly.
    
    * test/ruby/test_refinement.rb: add a test for above.

  Modified files:
    trunk/ChangeLog
    trunk/class.c
    trunk/test/ruby/test_refinement.rb
    trunk/vm_core.h
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list