Skip to content

Commit 4c0a276

Browse files
jhawthornk0kubun
authored andcommitted
More write barriers to local_iseq and parent_iseq
Found by wbcheck
1 parent 3fb7c4f commit 4c0a276

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iseq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,11 @@ set_relation(rb_iseq_t *iseq, const rb_iseq_t *piseq)
594594
body->local_iseq = iseq;
595595
}
596596
else if (piseq) {
597-
body->local_iseq = ISEQ_BODY(piseq)->local_iseq;
597+
RB_OBJ_WRITE(iseq, &body->local_iseq, ISEQ_BODY(piseq)->local_iseq);
598598
}
599599

600600
if (piseq) {
601-
body->parent_iseq = piseq;
601+
RB_OBJ_WRITE(iseq, &body->parent_iseq, piseq);
602602
}
603603

604604
if (type == ISEQ_TYPE_MAIN) {

0 commit comments

Comments
 (0)