1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix WB for callinfo

The WB for callinfo needs to be executed *after* the reference is
written.  Otherwise we get a WB miss.
This commit is contained in:
Aaron Patterson 2021-01-14 09:55:54 -08:00
parent 834b404b9a
commit 5e26619660
No known key found for this signature in database
GPG key ID: 953170BCB4FFAFC6

View file

@ -1309,6 +1309,7 @@ new_insn_send(rb_iseq_t *iseq, int line_no, ID id, VALUE argc, const rb_iseq_t *
RB_OBJ_WRITTEN(iseq, Qundef, blockiseq);
}
INSN *insn = new_insn_core(iseq, line_no, BIN(send), 2, operands);
RB_OBJ_WRITTEN(iseq, Qundef, ci);
RB_GC_GUARD(ci);
return insn;
}