8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG

Reviewed-by: thartmann, mdoerr
This commit is contained in:
Richard Reingruber 2019-08-30 09:24:54 +02:00
parent c417c473a4
commit d7ca08a5cc

View File

@ -2178,6 +2178,9 @@ bool ConnectionGraph::not_global_escape(Node *n) {
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)