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
parent 99de389071
commit 121f967bcd
Notes: git 2025-06-18 17:18:24 +00:00

4
iseq.c
View file

@ -602,11 +602,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) {