More write barriers to local_iseq and parent_iseq

Found by wbcheck
This commit is contained in:
John Hawthorn 2025-06-09 10:09:10 -07:00 committed by Takashi Kokubun
parent 3fb7c4f7e6
commit 4c0a2764b6

4
iseq.c
View File

@ -594,11 +594,11 @@ set_relation(rb_iseq_t *iseq, const rb_iseq_t *piseq)
body->local_iseq = iseq;
}
else if (piseq) {
body->local_iseq = ISEQ_BODY(piseq)->local_iseq;
RB_OBJ_WRITE(iseq, &body->local_iseq, ISEQ_BODY(piseq)->local_iseq);
}
if (piseq) {
body->parent_iseq = piseq;
RB_OBJ_WRITE(iseq, &body->parent_iseq, piseq);
}
if (type == ISEQ_TYPE_MAIN) {