From 2a70f68c05118775da45e630a96e89f6f57ceb39 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 20 Dec 2018 07:17:55 +0000 Subject: hide iseq operand object for duphash. [Bug #15440] * compile.c (compile_array): hide source Hash object. * hash.c (rb_hash_resurrect): introduced to dup Hash object using rb_cHash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- insns.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'insns.def') diff --git a/insns.def b/insns.def index 73628a3376..983a20fa3f 100644 --- a/insns.def +++ b/insns.def @@ -461,7 +461,7 @@ duphash () (VALUE val) { - val = rb_hash_dup(hash); + val = rb_hash_resurrect(hash); } /* if TOS is an array expand, expand it to num objects. -- cgit v1.2.3