summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-12-16 10:50:14 -0500
committerPeter Zhu <[email protected]>2024-12-17 11:03:38 -0500
commit429b867d1b2de9dcdd558b13c3c9ab54e94e5a9b (patch)
treedee0ef3dc85148c204d7c1619414186f705b925d /variable.c
parent9733304d6112ca3ac81b70dfecf7b2b7f63beff5 (diff)
Fix autoload_table_compact
The keys are IDs, so we cannot update references on them.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12371
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index ec7199eaf0..b73d38f469 100644
--- a/variable.c
+++ b/variable.c
@@ -2375,7 +2375,7 @@ autoload_table_memsize(const void *ptr)
static void
autoload_table_compact(void *ptr)
{
- rb_gc_update_tbl_refs((st_table *)ptr);
+ rb_gc_ref_update_table_values_only((st_table *)ptr);
}
static const rb_data_type_t autoload_table_type = {