[前][次][番号順一覧][スレッド一覧]

ruby-changes:57657

From: Yusuke <ko1@a...>
Date: Sun, 8 Sep 2019 00:35:23 +0900 (JST)
Subject: [ruby-changes:57657] bb78c83678 (master): compile.c (compile_hash): don't add a temporal array to mark_ary

https://git.ruby-lang.org/ruby.git/commit/?id=bb78c83678

From bb78c8367802335ec17c39b228e0f535b6e23cb4 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Sat, 7 Sep 2019 23:56:19 +0900
Subject: compile.c (compile_hash): don't add a temporal array to mark_ary

The array is just for a temporal buffer to create a hash, not stored in
the final iseq.

diff --git a/compile.c b/compile.c
index ba786bd..0e10286 100644
--- a/compile.c
+++ b/compile.c
@@ -4123,10 +4123,6 @@ compile_hash(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, int popp https://github.com/ruby/ruby/blob/trunk/compile.c#L4123
                 node = node->nd_next->nd_next;
             }
 
-            OBJ_FREEZE(ary);
-
-            iseq_add_mark_object_compile_time(iseq, ary);
-
             if (first) {
                 first = 0;
                 VALUE hash;
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]