ruby-changes:71015
From: Peter <ko1@a...>
Date: Wed, 26 Jan 2022 06:51:34 +0900 (JST)
Subject: [ruby-changes:71015] 82f0580aa4 (master): Call rb_id_table_foreach_values instead
https://git.ruby-lang.org/ruby.git/commit/?id=82f0580aa4 From 82f0580aa4a1a2da6ab3803dfb4f5e5a58820d3d Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Tue, 25 Jan 2022 16:15:46 -0500 Subject: Call rb_id_table_foreach_values instead These places never replace the value, so call rb_id_table_foreach_values instead of rb_id_table_foreach_values_with_replace. --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index c7cfea4a24a..a29f7b0cc38 100644 --- a/gc.c +++ b/gc.c @@ -9883,7 +9883,7 @@ update_cc_tbl(rb_objspace_t *objspace, VALUE klass) https://github.com/ruby/ruby/blob/trunk/gc.c#L9883 { struct rb_id_table *tbl = RCLASS_CC_TBL(klass); if (tbl) { - rb_id_table_foreach_values_with_replace(tbl, update_cc_tbl_i, 0, objspace); + rb_id_table_foreach_values(tbl, update_cc_tbl_i, objspace); } } @@ -9904,7 +9904,7 @@ update_cvc_tbl(rb_objspace_t *objspace, VALUE klass) https://github.com/ruby/ruby/blob/trunk/gc.c#L9904 { struct rb_id_table *tbl = RCLASS_CVC_TBL(klass); if (tbl) { - rb_id_table_foreach_values_with_replace(tbl, update_cvc_tbl_i, 0, objspace); + rb_id_table_foreach_values(tbl, update_cvc_tbl_i, objspace); } } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/