From 121f967bcdcbaf11dc23657c15c655324f8059d9 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Mon, 9 Jun 2025 10:09:10 -0700 Subject: [PATCH] More write barriers to local_iseq and parent_iseq Found by wbcheck --- iseq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iseq.c b/iseq.c index dcde27ba1b..1201b877ab 100644 --- a/iseq.c +++ b/iseq.c @@ -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) {