Skip to content

Commit 7de0955

Browse files
jhawthornk0kubun
authored andcommitted
Add write barrier to rb_cArray_empty_frozen
Found by wbcheck
1 parent f6448d6 commit 7de0955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3476,7 +3476,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
34763476
iobj->insn_id = BIN(opt_ary_freeze);
34773477
iobj->operand_size = 2;
34783478
iobj->operands = compile_data_calloc2(iseq, iobj->operand_size, sizeof(VALUE));
3479-
iobj->operands[0] = rb_cArray_empty_frozen;
3479+
RB_OBJ_WRITE(iseq, &iobj->operands[0], rb_cArray_empty_frozen);
34803480
iobj->operands[1] = (VALUE)ci;
34813481
ELEM_REMOVE(next);
34823482
}

0 commit comments

Comments
 (0)