diff options
author | Peter Zhu <[email protected]> | 2022-01-25 16:15:46 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-01-25 16:51:16 -0500 |
commit | 82f0580aa4a1a2da6ab3803dfb4f5e5a58820d3d (patch) | |
tree | e05fcad133c4dc8d32a974f59fc5062d641ce993 /gc.c | |
parent | 4d9ad91a35b16afde38fd4ae513a49d22e27b3ea (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5486
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9883,7 +9883,7 @@ update_cc_tbl(rb_objspace_t *objspace, VALUE klass) { 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) { 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); } } |