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

ruby-changes:67979

From: Kenichi <ko1@a...>
Date: Tue, 14 Sep 2021 14:53:57 +0900 (JST)
Subject: [ruby-changes:67979] bb84c75001 (master): Revert "Force recycle intermediate collection in Hash#transform_keys! [Bug #17735]"

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

From bb84c75001f1bf13b4b2a12db8f4420e76a3ea03 Mon Sep 17 00:00:00 2001
From: Kenichi Kamiya <kachick1@g...>
Date: Wed, 31 Mar 2021 16:44:09 +0900
Subject: Revert "Force recycle intermediate collection in Hash#transform_keys!
 [Bug #17735]"

This reverts commit 522d4cd32f7727886f4fcbc28ed29c08d361ee20.
---
 hash.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hash.c b/hash.c
index 0929842..f75e394 100644
--- a/hash.c
+++ b/hash.c
@@ -3290,7 +3290,6 @@ rb_hash_transform_keys_bang(int argc, VALUE *argv, VALUE hash) https://github.com/ruby/ruby/blob/trunk/hash.c#L3290
         }
         rb_ary_clear(pairs);
         rb_hash_clear(new_keys);
-        rb_gc_force_recycle(new_keys);
     }
     return hash;
 }
-- 
cgit v1.1


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

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