ruby-changes:14647
From: yugui <ko1@a...>
Date: Sat, 30 Jan 2010 22:06:25 +0900 (JST)
Subject: [ruby-changes:14647] Ruby:r26495 (ruby_1_9_1): * vm_method.c (rb_alias): treats an alias as if it is a newly defined
yugui 2010-01-30 21:50:48 +0900 (Sat, 30 Jan 2010) New Revision: 26495 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26495 Log: * vm_method.c (rb_alias): treats an alias as if it is a newly defined method so that oklass in a method cache refers the class on which the aliasing occured. [ruby-core:26074] (#2202). Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/version.h branches/ruby_1_9_1/vm_method.c Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 26494) +++ ruby_1_9_1/ChangeLog (revision 26495) @@ -1,3 +1,10 @@ +Sat Jan 30 18:09:36 2010 Yuki Sonoda (Yugui) <yugui@y...> + + * vm_method.c (rb_alias): treats an alias as if it is a newly defined + method so that oklass in a method cache refers the class on which the + aliasing occured. + [ruby-core:26074] (#2202). + Sat Jan 30 17:58:28 2010 Yuki Sonoda (Yugui) <yugui@y...> * .gdbinit: follows r24470. Index: ruby_1_9_1/vm_method.c =================================================================== --- ruby_1_9_1/vm_method.c (revision 26494) +++ ruby_1_9_1/vm_method.c (revision 26495) @@ -771,7 +771,7 @@ st_insert(RCLASS_M_TBL(klass), name, (st_data_t) NEW_FBODY( method = NEW_METHOD(orig_fbody->nd_body->nd_body, - orig_fbody->nd_body->nd_clss, + klass, NOEX_WITH_SAFE(orig_fbody->nd_body->nd_noex)), def)); method->nd_file = (void *)def; Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 26494) +++ ruby_1_9_1/version.h (revision 26495) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 400 +#define RUBY_PATCHLEVEL 401 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/