8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG
Reviewed-by: thartmann, mdoerr
--- 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)