mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
4d9ad91a35
commit
82f0580aa4
Notes:
git
2022-01-26 06:51:37 +09:00
1 changed files with 2 additions and 2 deletions
4
gc.c
4
gc.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue