JDK-8237086 : assert(is_MachReturn()) running CTW with fix for JDK-8231291
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10,11,14,15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-01-14
  • Updated: 2022-06-27
  • Resolved: 2020-02-07
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 15
11.0.8-oracleFixed 13.0.4Fixed 15 b10Fixed
Related Reports
Relates :  
Relates :  
Description
#  Internal Error (src/hotspot/share/opto/node.hpp:852), pid=1623963, tid=1623975
#  assert(is_MachReturn()) failed: invalid node class

root cause is that GraphKit::must_be_not_null() is called with a known to be non null input. This causes the null branch of the test to be optimized to top and a top be added to the RootNode. RootNode::Ideal() is never called to clean the top inputs and the assert is hit during matching.
Comments
Fix request (13u): The original change applies cleanly, passes tier1,tier2,tier3 tests.
05-06-2020

8u backport: while there's a chance this bug exists in 8u, it was only seen in newer version of the code base triggered by code that doesn't exist in 8u. I don't think backporting to 8u is needed.
06-04-2020

11u Fix Request Backporting this patch eliminates a C2 crash. Patch applies cleanly to 11u. Backport requires JDK-8217230 to be applied first. tier1 and tier2 tests pass with the patch.
06-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/f2cefce4859b User: roland Date: 2020-02-07 11:39:36 +0000
07-02-2020

ILW = Crash during compilation, only with modified codebase, exclude affected method from compilation = HLM = P3
14-01-2020