Fix autoload_table_compact

The keys are IDs, so we cannot update references on them.
This commit is contained in:
Peter Zhu 2024-12-16 10:50:14 -05:00
parent 9733304d61
commit 429b867d1b
Notes: git 2024-12-17 16:03:56 +00:00

View File

@ -2375,7 +2375,7 @@ autoload_table_memsize(const void *ptr)
static void static void
autoload_table_compact(void *ptr) 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 = { static const rb_data_type_t autoload_table_type = {