8224538: LoadBarrierNode::common_barrier must check address
authorneliasso
Fri, 31 May 2019 10:13:24 +0200
changeset 55123 7b70f269fe0d
parent 55122 d4475420fb9a
child 55124 f91999057a5a
8224538: LoadBarrierNode::common_barrier must check address Reviewed-by: thartmann, kvn
src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp
--- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp	Fri May 31 08:27:06 2019 +0530
+++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp	Fri May 31 10:13:24 2019 +0200
@@ -1336,10 +1336,9 @@
       Node* other_ctrl = u->in(LoadBarrierNode::Control);
 
       Node* lca = phase->dom_lca(this_ctrl, other_ctrl);
-      bool ok = true;
-
       Node* proj1 = NULL;
       Node* proj2 = NULL;
+      bool ok = (lb->in(LoadBarrierNode::Address) == u->in(LoadBarrierNode::Address));
 
       while (this_ctrl != lca && ok) {
         if (this_ctrl->in(0) != NULL &&