From 4c0a2764b6634e6f2c11494fc015afd5c71537c2 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 7ac2f5e2dc..7a2aefa584 100644 --- a/iseq.c +++ b/iseq.c @@ -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) {