mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
More write barriers to local_iseq and parent_iseq
Found by wbcheck
This commit is contained in:
parent
99de389071
commit
121f967bcd
Notes:
git
2025-06-18 17:18:24 +00:00
1 changed files with 2 additions and 2 deletions
4
iseq.c
4
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue