changeset 9074:1bbf10267ee0

8230363: C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG Reviewed-by: thartmann, mdoerr
author rrich
date Fri, 30 Aug 2019 09:24:54 +0200
parents 9148fcba5de9
children c2fa0ac49d01
files src/share/vm/opto/escape.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/escape.cpp	Thu Nov 07 17:56:14 2019 -0500
+++ b/src/share/vm/opto/escape.cpp	Fri Aug 30 09:24:54 2019 +0200
@@ -2114,6 +2114,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)