summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--class.c1
1 files changed, 1 insertions, 0 deletions
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);
}
}