JDK-8230711 : ConnectionGraph::unique_java_object(Node* N) return NULL if n is not in the CG
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8,11,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-09-06
  • Updated: 2020-07-01
  • Resolved: 2019-09-10
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 openjdk8u272Fixed
Related Reports
Relates :  
Description
In https://bugs.openjdk.java.net/browse/JDK-8230363 
a graceful return  has been added to method ConnectionGraph::not_global_escape(Node* n)   if n is not in the CG .
However a similar case exists in  ConnectionGraph::unique_java_object .

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::unique_java_object(Node* n). 
This case should be handled more gracefully by returning  NULL .

Comments
13u Fix Request: Backporting this simple patch protects against a rare case that could cause a C2 crash. Applies cleanly to 13u. Testing: tier1
27-05-2020

8u Fix Request: Backporting this simple patch protects against a rare case that could cause a C2 crash. Other than the copyright header that needs manual adjustment, the patch applies cleanly to 8u. Testing: tier1
31-03-2020

I would like to have the patch in jdk11 as well, because the issue is present there too. The patch applies cleanly.
11-09-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/d8f60e5bb4a6 User: mbaesken Date: 2019-09-10 07:22:55 +0000
10-09-2019