JDK-8268371 : C2: assert(_gvn.type(obj)->higher_equal(tjp)) failed: cast_up is no longer needed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-08
  • Updated: 2021-07-15
  • Resolved: 2021-06-17
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 17 JDK 18
17 b28Fixed 18Fixed
Related Reports
Relates :  
Description
I'm seeing this:

#  Internal Error (/home/roland/jdk-jdk/src/hotspot/share/opto/parse3.cpp:86), pid=1161731, tid=1161744
#  assert(_gvn.type(obj)->higher_equal(tjp)) failed: cast_up is no longer needed

when running ctw on https://repo1.maven.org/maven2/org/apache/click/click-nodeps/2.3.0/click-nodeps-2.3.0.jar

JAVA_OPTIONS="-XX:-TieredCompilation -XX:CICompilerCount=4 -Djava.security.manager=disallow" JAVA_HOME=~/jdk-jdk/build/linux-x86_64-server-fastdebug/images/jdk/ ./ctw.sh /home/roland/tmp/click-nodeps-2.3.0.jar

Error disappears if 8267807 is reverted
Comments
Changeset: 9130b8a9 Author: Vladimir Ivanov <vlivanov@openjdk.org> Date: 2021-06-17 21:25:46 +0000 URL: https://git.openjdk.java.net/jdk17/commit/9130b8a9d7ebd943108f01d41ed777e080f34c4d
17-06-2021

ILW = C2 assertion failure during parsing, with CTW test only, try disable compilation of affected method or try without -XX:-TieredCompilation = HLM = P3
08-06-2021