From 1d2d307c5cb0aecccfe1c31f0f7667a252c4178f Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 10 Aug 2015 01:07:57 +0000 Subject: 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 86a877a165..af88e4b3a8 100644 --- a/eval.c +++ b/eval.c @@ -1088,9 +1088,8 @@ rb_mod_prepend(int argc, VALUE *argv, VALUE module) 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; } -- cgit v1.2.3