JDK-8269575 : C2: assert(false) failed: graph should be schedulable after JDK-8252372
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 17,18
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2021-06-29
  • Updated: 2021-08-06
  • Resolved: 2021-07-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 17 JDK 18
17 b30Fixed 18Fixed
Related Reports
Relates :  
Description
Attached Fuzzer test fails:

$ linux-x86_64-server-fastdebug/images/jdk/bin/java -Xcomp -XX:CompileOnly=Test Test

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/home/shade/trunks/jdk/src/hotspot/share/opto/lcm.cpp:1190), pid=2187087, tid=2187100
#  assert(false) failed: graph should be schedulable

Current CompileTask:
C2:    235    6    b  4       Test::mainTest (745 bytes)

Stack: [0x00007f21c9e64000,0x00007f21c9f65000],  sp=0x00007f21c9f5fb70,  free space=1006k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x1229004]  PhaseCFG::schedule_local(Block*, GrowableArray<int>&, VectorSet&, long*)+0xe04
V  [libjvm.so+0xd2ead8]  PhaseCFG::global_code_motion()+0xc38
V  [libjvm.so+0xd320d1]  PhaseCFG::do_global_code_motion()+0x51
V  [libjvm.so+0xa1c44b]  Compile::Code_Gen()+0x2ab
V  [libjvm.so+0xa2948b]  Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, bool, DirectiveSet*)+0x13bb
V  [libjvm.so+0x857106]  C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x646
V  [libjvm.so+0xa3ae19]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf19
V  [libjvm.so+0xa3bae8]  CompileBroker::compiler_thread_loop()+0x598
V  [libjvm.so+0x19bf45c]  JavaThread::thread_main_inner()+0x28c
V  [libjvm.so+0x19c4f24]  Thread::call_run()+0x104
V  [libjvm.so+0x1556d2c]  thread_native_entry(Thread*)+0x10c

Comments
Changeset: df1364b5 Author: Roland Westrelin <roland@openjdk.org> Date: 2021-07-06 07:03:08 +0000 URL: https://git.openjdk.java.net/jdk17/commit/df1364b50870e05bbaa994a96bf86b6d284c334f
06-07-2021

ILW = C2 assertion failure regression = HMM = P2
30-06-2021

Bisected to JDK-8252372.
29-06-2021