diff options
author | John Hawthorn <[email protected]> | 2025-06-09 10:09:10 -0700 |
---|---|---|
committer | John Hawthorn <[email protected]> | 2025-06-18 10:18:10 -0700 |
commit | 121f967bcdcbaf11dc23657c15c655324f8059d9 (patch) | |
tree | 5cb133170093ad015ebda0ec55cc62a54381170e | |
parent | 99de38907157935927401a4515de1763d6f0c36f (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |