summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <[email protected]>2025-06-09 10:09:10 -0700
committerJohn Hawthorn <[email protected]>2025-06-18 10:18:10 -0700
commit121f967bcdcbaf11dc23657c15c655324f8059d9 (patch)
tree5cb133170093ad015ebda0ec55cc62a54381170e
parent99de38907157935927401a4515de1763d6f0c36f (diff)
More write barriers to local_iseq and parent_iseq
Found by wbcheck
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13646
-rw-r--r--iseq.c4
1 files 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) {