Skip to content

Commit f6448d6

Browse files
jhawthornk0kubun
authored andcommitted
Add write barrier to rb_cHash_empty_frozen
Found by wbcheck
1 parent 4c0a276 commit f6448d6

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
@@ -3499,7 +3499,7 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
34993499
iobj->insn_id = BIN(opt_hash_freeze);
35003500
iobj->operand_size = 2;
35013501
iobj->operands = compile_data_calloc2(iseq, iobj->operand_size, sizeof(VALUE));
3502-
iobj->operands[0] = rb_cHash_empty_frozen;
3502+
RB_OBJ_WRITE(iseq, &iobj->operands[0], rb_cHash_empty_frozen);
35033503
iobj->operands[1] = (VALUE)ci;
35043504
ELEM_REMOVE(next);
35053505
}

0 commit comments

Comments
 (0)