mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
More write barriers to local_iseq and parent_iseq
Found by wbcheck
This commit is contained in:
parent
3fb7c4f7e6
commit
4c0a2764b6
4
iseq.c
4
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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user