ruby-changes:37439
From: nobu <ko1@a...>
Date: Fri, 6 Feb 2015 11:33:52 +0900 (JST)
Subject: [ruby-changes:37439] nobu:r49520 (trunk): revert r45487
nobu 2015-02-06 11:33:47 +0900 (Fri, 06 Feb 2015) New Revision: 49520 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49520 Log: revert r45487 * variable.c (rb_alias_variable): IDs are always immportal now, no pin down is needed. * vm_method.c (rb_method_entry_make): ditto. Modified files: trunk/variable.c trunk/vm_method.c Index: variable.c =================================================================== --- variable.c (revision 49519) +++ variable.c (revision 49520) @@ -872,7 +872,6 @@ rb_alias_variable(ID name1, ID name2) https://github.com/ruby/ruby/blob/trunk/variable.c#L872 entry2 = rb_global_entry(name2); if (!st_lookup(rb_global_tbl, (st_data_t)name1, &data1)) { - name1 = SYM2ID(ID2SYM(name1)); entry1 = ALLOC(struct global_entry); entry1->id = name1; st_add_direct(rb_global_tbl, name1, (st_data_t)entry1); Index: vm_method.c =================================================================== --- vm_method.c (revision 49519) +++ vm_method.c (revision 49520) @@ -344,8 +344,6 @@ rb_method_entry_make(VALUE klass, ID mid https://github.com/ruby/ruby/blob/trunk/vm_method.c#L344 rb_unlink_method_entry(old_me); } - mid = SYM2ID(ID2SYM(mid)); - me = ALLOC(rb_method_entry_t); rb_clear_method_cache_by_class(klass); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/