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

ruby-changes:72661

From: Nobuyoshi <ko1@a...>
Date: Sat, 23 Jul 2022 21:48:55 +0900 (JST)
Subject: [ruby-changes:72661] 721d154e2f (master): Remove duplicate code for internal arrays

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

From 721d154e2f81c65bd7f1bfd9eff6759b015b123e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 23 Jul 2022 21:42:05 +0900
Subject: Remove duplicate code for internal arrays

Internal arrays are now created hidden from the start.
---
 compile.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/compile.c b/compile.c
index be974d571a..c17c97adbb 100644
--- a/compile.c
+++ b/compile.c
@@ -12357,8 +12357,7 @@ ibf_load_object_array(const struct ibf_load *load, const struct ibf_object_heade https://github.com/ruby/ruby/blob/trunk/compile.c#L12357
         rb_ary_push(ary, ibf_load_object(load, index));
     }
 
-    if (header->internal) rb_obj_hide(ary);
-    if (header->frozen)   rb_obj_freeze(ary);
+    if (header->frozen) rb_obj_freeze(ary);
 
     return ary;
 }
-- 
cgit v1.2.1


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

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