[ruby-cvs:68861] nobu:r61680 (trunk): vm.c: respect redefinition of Proc#call

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Jan 8 18:04:07 JST 2018


nobu	2018-01-08 18:04:07 +0900 (Mon, 08 Jan 2018)

  New Revision: 61680

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

  Log:
    vm.c: respect redefinition of Proc#call
    
    * vm.c (vm_redefinition_check_method_type): hoist out method
      definition type to check redefinition.
    
    * vm.c (rb_vm_check_redefinition_opt_method): should check
      optimized method too.
    
    * vm.c (vm_init_redefined_flag): check Proc#call.
    
    * vm_insnhelper.c (vm_call_opt_block_call): search proper method
      if redefined.  [Bug #14335]

  Modified files:
    trunk/test/ruby/test_proc.rb
    trunk/vm.c
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list