diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-30 12:50:48 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-30 12:50:48 +0000 |
commit | be40bdbad7f2ca2cf980f89a541336111c3c29de (patch) | |
tree | 3572ee73442aed458858b9e03a14983cf6060ba3 | |
parent | d274933b1371a2569f0adde526496e18891a58c4 (diff) |
* 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).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | version.h | 2 | ||||
-rw-r--r-- | vm_method.c | 2 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Sat Jan 30 18:09:36 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * 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@yugui.jp> * .gdbinit: follows r24470. @@ -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 diff --git a/vm_method.c b/vm_method.c index 815de8773d..b3c39776e1 100644 --- a/vm_method.c +++ b/vm_method.c @@ -771,7 +771,7 @@ rb_alias(VALUE klass, ID name, ID def) 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; |