8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG
authorrrich
Fri, 30 Aug 2019 09:24:54 +0200
changeset 58030 d6e2dbf20eaa
parent 58029 66c880e5d21d
child 58031 5aaf53d4fe63
8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG Reviewed-by: thartmann, mdoerr
src/hotspot/share/opto/escape.cpp
--- a/src/hotspot/share/opto/escape.cpp	Fri Sep 06 09:26:23 2019 +0200
+++ b/src/hotspot/share/opto/escape.cpp	Fri Aug 30 09:24:54 2019 +0200
@@ -2178,6 +2178,9 @@
     return false;
   }
   PointsToNode* ptn = ptnode_adr(idx);
+  if (ptn == NULL) {
+    return false; // not in congraph (e.g. ConI)
+  }
   PointsToNode::EscapeState es = ptn->escape_state();
   // If we have already computed a value, return it.
   if (es >= PointsToNode::GlobalEscape)