8262298: G1BarrierSetC2::step_over_gc_barrier fails with assert "bad barrier shape"

Reviewed-by: kvn, vlivanov
This commit is contained in:
Nils Eliasson 2021-03-17 16:31:23 +00:00
parent 7674da4379
commit cdf78e47c4

View File

@ -759,7 +759,7 @@ Node* G1BarrierSetC2::step_over_gc_barrier(Node* c) const {
r->in(j)->in(0)->as_Call()->entry_point() == CAST_FROM_FN_PTR(address, G1BarrierSetRuntime::write_ref_field_post_entry)) {
Node* call = r->in(j)->in(0);
c = c->in(i == 1 ? 2 : 1);
if (c != NULL) {
if (c != NULL && c->Opcode() != Op_Parm) {
c = c->in(0);
if (c != NULL) {
c = c->in(0);