Skip to content

Commit 429b867

Browse files
committed
Fix autoload_table_compact
The keys are IDs, so we cannot update references on them.
1 parent 9733304 commit 429b867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2375,7 +2375,7 @@ autoload_table_memsize(const void *ptr)
23752375
static void
23762376
autoload_table_compact(void *ptr)
23772377
{
2378-
rb_gc_update_tbl_refs((st_table *)ptr);
2378+
rb_gc_ref_update_table_values_only((st_table *)ptr);
23792379
}
23802380

23812381
static const rb_data_type_t autoload_table_type = {

0 commit comments

Comments
 (0)