From 0d29d548e44a82855d6eb71b02bcccbd82ec5355 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Thu, 26 Jun 2025 16:14:44 -0700 Subject: Issue writebarrier_remember after set const tbl --- class.c | 1 + 1 file changed, 1 insertion(+) diff --git a/class.c b/class.c index 9b29f000b4..86686a9fa8 100644 --- a/class.c +++ b/class.c @@ -1017,6 +1017,7 @@ copy_tables(VALUE clone, VALUE orig) arg.klass = clone; rb_id_table_foreach(orig_tbl, clone_const_i, &arg); RCLASS_WRITE_CONST_TBL(clone, const_tbl, false); + rb_gc_writebarrier_remember(clone); } } -- cgit v1.2.3