ruby-changes:39433
From: nobu <ko1@a...>
Date: Mon, 10 Aug 2015 10:08:28 +0900 (JST)
Subject: [ruby-changes:39433] nobu:r51514 (trunk): eval.c: use rb_ident_hash_new
nobu 2015-08-10 10:07:57 +0900 (Mon, 10 Aug 2015) New Revision: 51514 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51514 Log: eval.c: use rb_ident_hash_new * eval.c (hidden_identity_hash_new): use rb_ident_hash_new instead of funcall Hash#compare_by_id. Modified files: trunk/eval.c Index: eval.c =================================================================== --- eval.c (revision 51513) +++ eval.c (revision 51514) @@ -1088,9 +1088,8 @@ rb_mod_prepend(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/eval.c#L1088 static VALUE hidden_identity_hash_new(void) { - VALUE hash = rb_hash_new(); + VALUE hash = rb_ident_hash_new(); - rb_funcall(hash, rb_intern("compare_by_identity"), 0); RBASIC_CLEAR_CLASS(hash); /* hide from ObjectSpace */ return hash; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/