Skip to content

Commit

Permalink
Fix WB for callinfo
Browse files Browse the repository at this point in the history
The WB for callinfo needs to be executed *after* the reference is
written.  Otherwise we get a WB miss.
  • Loading branch information
tenderlove committed Jan 14, 2021
1 parent 834b404 commit 5e26619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5e26619

Please sign in to comment.