Skip to content

Commit d7ca08a

Browse files
committed
8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG
Reviewed-by: thartmann, mdoerr
1 parent c417c47 commit d7ca08a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/hotspot/share/opto/escape.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,9 @@ bool ConnectionGraph::not_global_escape(Node *n) {
21782178
return false;
21792179
}
21802180
PointsToNode* ptn = ptnode_adr(idx);
2181+
if (ptn == NULL) {
2182+
return false; // not in congraph (e.g. ConI)
2183+
}
21812184
PointsToNode::EscapeState es = ptn->escape_state();
21822185
// If we have already computed a value, return it.
21832186
if (es >= PointsToNode::GlobalEscape)

0 commit comments

Comments
 (0)