Skip to content

Commit 320f820

Browse files
committed
Backport write barrier from ruby#13992
For testing on CI to see if we see less crashes with parallel testing.
1 parent a38531f commit 320f820

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

class.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,7 @@ ensure_origin(VALUE klass)
14281428
RCLASS_SET_SUPER(origin, RCLASS_SUPER(klass));
14291429
RCLASS_SET_SUPER(klass, origin);
14301430
RCLASS_SET_ORIGIN(klass, origin);
1431+
rb_gc_writebarrier_remember(origin);
14311432
RCLASS_M_TBL_INIT(klass);
14321433
rb_id_table_foreach(RCLASS_M_TBL(origin), cache_clear_refined_method, (void *)klass);
14331434
rb_id_table_foreach(RCLASS_M_TBL(origin), move_refined_method, (void *)klass);

0 commit comments

Comments
 (0)