From 9efd5877859739cc9068a37a2b59771519d8b828 Mon Sep 17 00:00:00 2001 From: rrich Date: Fri, 30 Aug 2019 09:24:54 +0200 Subject: [PATCH] 8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG Reviewed-by: thartmann, mdoerr --HG-- extra : rebase_source : 506ba6f67cb248fb78906f8e66a5679f1b69e571 --- src/share/vm/opto/escape.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/share/vm/opto/escape.cpp b/src/share/vm/opto/escape.cpp index 77c49ba72..ac8217382 100644 --- a/src/share/vm/opto/escape.cpp +++ b/src/share/vm/opto/escape.cpp @@ -2114,6 +2114,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) -- GitLab