mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Add write barrier to rb_cArray_empty_frozen
Found by wbcheck
This commit is contained in:
parent
d5adf85116
commit
1bfd6493c0
Notes:
git
2025-06-18 17:18:23 +00:00
1 changed files with 1 additions and 1 deletions
|
@ -3493,7 +3493,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
|
|||
iobj->insn_id = BIN(opt_ary_freeze);
|
||||
iobj->operand_size = 2;
|
||||
iobj->operands = compile_data_calloc2(iseq, iobj->operand_size, sizeof(VALUE));
|
||||
iobj->operands[0] = rb_cArray_empty_frozen;
|
||||
RB_OBJ_WRITE(iseq, &iobj->operands[0], rb_cArray_empty_frozen);
|
||||
iobj->operands[1] = (VALUE)ci;
|
||||
ELEM_REMOVE(next);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue