Fix potentially missing write barrier in iseq_build_kw
We're writing objects to the iseq but not firing the write barrier.
This commit is contained in:
parent
ead280fe8b
commit
2230ac4a28
Notes:
git
2024-09-19 18:51:38 +00:00
@ -11954,7 +11954,7 @@ iseq_build_kw(rb_iseq_t *iseq, VALUE params, VALUE keywords)
|
|||||||
rb_raise(rb_eTypeError, "keyword default has unsupported len %+"PRIsVALUE, key);
|
rb_raise(rb_eTypeError, "keyword default has unsupported len %+"PRIsVALUE, key);
|
||||||
}
|
}
|
||||||
ids[i] = SYM2ID(sym);
|
ids[i] = SYM2ID(sym);
|
||||||
dvs[j] = default_val;
|
RB_OBJ_WRITE(iseq, &dvs[j], default_val);
|
||||||
}
|
}
|
||||||
|
|
||||||
keyword->table = ids;
|
keyword->table = ids;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user