JDK-8307619 : C2 failed: Not monotonic (AndI CastII LShiftI) in TestShiftCastAndNotification.java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-05-08
  • Updated: 2023-07-10
  • Resolved: 2023-05-22
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 21
21 b24Fixed
Related Reports
Relates :  
Relates :  
Description
Probably related to JDK-8306042.


  33  ConI  === 0  [[ 44 455 447 ]]  #int:3
 456  CastII  === 421 219  [[ 455 ]]  #int unconditional dependency
 455  AndI  === _ 456 33  [[ 338 ]]  !orig=[240],[291] !jvms: TestShiftCastAndNotification::test @ bci:49 (line 48)
told = int:0
tnew = top
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (.../open/src/hotspot/share/opto/phaseX.cpp:1935), pid=880014, tid=880031
#  fatal error: Not monotonic
#
# JRE version: Java(TM) SE Runtime Environment (21.0) (fastdebug build 21-internal-LTS-2023-05-08-0649543.emanuel.peter.fork4-jdk)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-internal-LTS-2023-05-08-0649543.emanuel.peter.fork4-jdk, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# V  [libjvm.so+0x137dcb0]  PhaseCCP::verify_type(Node*, Type const*, Type const*)+0x1bc
Comments
Changeset: b6a9f5c3 Author: Emanuel Peter <epeter@openjdk.org> Date: 2023-05-22 06:23:19 +0000 URL: https://git.openjdk.org/jdk/commit/b6a9f5c304d9ffe74161d25af84f7c5bc1c09b33
22-05-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/13908 Date: 2023-05-10 14:37:35 +0000
11-05-2023

This reproduces on latest master: ~/Documents/jtreg/bin/jtreg -va -s -jdk:/home/emanuel/Documents/fork7-jdk/build/linux-x64-slowdebug/jdk -javaoptions:"-XX:+UnlockDiagnosticVMOptions -XX:-TieredCompilation -XX:+StressArrayCopyMacroNode -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:+StressMethodHandleLinkerInlining -XX:+StressCompiledExceptionHandlers -XX:RepeatCompilation=1000" -J-Djavatest.maxOutputSize=1000000 /home/emanuel/Documents/fork7-jdk/open/test/hotspot/jtreg/compiler/ccp/TestShiftCastAndNotification.java
10-05-2023

ILW = Fatal error in CCP, single test, disable compilation of affected method = HLM = P3
08-05-2023