JDK-8230363 : C2: Let ConnectionGraph::not_global_escape(Node* n) return false if n is not in the CG
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,13,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-08-29
  • Updated: 2022-06-27
  • Resolved: 2019-09-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14 Other
11.0.6-oracleFixed 13.0.4Fixed 14 b14Fixed openjdk8u232Fixed
Related Reports
Relates :  
Relates :  
Description
Not all ideal nodes are added to the connection graph, it will result in a crash, though, if a node
n that was not added to the connection graph is passed to ConnectionGraph::not_global_escape(Node* n).
This case should be handled more gracefully by returning false.

This is split off from JDK-8227745. There not_global_escape() is applied to the arguments of java
calls. If e.g. one should be an integer constant not_global_escape() would crash.
Comments
13u Fix Request Backporting this simple patch protects from a crash. Patch applies cleanly to 13u. tier1 tests pass with the patch.
27-05-2020

8u Fix Request Backporting this simple patch protects from a crash. Patch applies cleanly to 8u. No new failures with tier1 tests.
09-10-2019

11u Fix Request Backporting this simple patch protects from a crash. Patch applies cleanly to 11u. tier1 tests pass with the patch.
02-10-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/d6e2dbf20eaa User: rrich Date: 2019-09-06 08:05:10 +0000
06-09-2019

ILW = Crash in C2 EA due to NPE, only happens with JDK-8227745, disable EA = HLM = P3
30-08-2019