8214434: Disabling ZOptimizeLoadBarriers hits assert
Reviewed-by: kvn, pliden, eosterlund
--- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Thu Nov 29 14:32:23 2018 +0530
+++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Thu Nov 29 09:31:04 2018 +0100
@@ -658,8 +658,6 @@
kit->set_control(gvn.transform(new ProjNode(barrier, LoadBarrierNode::Control)));
}
Node* result = gvn.transform(new ProjNode(transformed_barrier, LoadBarrierNode::Oop));
- assert(is_gc_barrier_node(result), "sanity");
- assert(step_over_gc_barrier(result) == val, "sanity");
return result;
} else {
return val;