JDK-8241232 : -XX:+BootstrapJVMCI is not compatible with TieredStopAtLevel < CompLevel_full_optimization
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,12,13,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-03-19
  • Updated: 2025-07-01
  • Resolved: 2020-03-19
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 14 JDK 15
11.0.8-oracleFixed 14u-cpuFixed 15 b16Fixed
Related Reports
Causes :  
Relates :  
Description
# Reproduce

- Run in a debug jvm with
```
java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler -XX:+BootstrapJVMCI -Xcomp -XX:TieredStopAtLevel=1
```

# Symptom

```
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/Users/fool/workspace/open/jdk/src/hotspot/share/compiler/compileBroker.cpp:1246), pid=30568, tid=7939
#  assert(!TieredCompilation || comp_level <= TieredStopAtLevel) failed: Invalid compilation level
#
# JRE version: OpenJDK Runtime Environment (15.0) (fastdebug build 15-internal+0-adhoc.fool.jdk)


Stack: [0x0000700007feb000,0x00007000080eb000],  sp=0x00007000080ea960,  free space=1022k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0xc2cf5c]  VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x6d4
V  [libjvm.dylib+0xc2d671]  VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x3f
V  [libjvm.dylib+0x337627]  report_vm_error(char const*, int, char const*, char const*, ...)+0x145
V  [libjvm.dylib+0x30fb2b]  CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, DirectiveSet*, Thread*)+0x18b
V  [libjvm.dylib+0x30f97f]  CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, Thread*)+0xb3
V  [libjvm.dylib+0x6752c5]  JVMCICompiler::bootstrap(Thread*)+0x18f
V  [libjvm.dylib+0x5f39fb]  JNI_CreateJavaVM+0x3a9
C  [libjli.dylib+0x3f47]  JavaMain+0x10b
C  [libjli.dylib+0x6b3d]  ThreadJavaMain+0x9
C  [libsystem_pthread.dylib+0x5d36]  _pthread_start+0x7d
C  [libsystem_pthread.dylib+0x258f]  thread_start+0xf
```
Comments
11u downport: Mark as jdk11u-jvmci-defer. The patch applies clean, but the test hangs. Given the many missing JVMCI changes I skip this one.
15-04-2020

I didn't notice that rule before. Thanks Tobias for your reminder. Will do next time.
19-03-2020

Just a friendly reminder that a change should be out for review for at least 24 hours before pushing: https://wiki.openjdk.java.net/display/HotSpot/Pushing+a+HotSpot+change
19-03-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/b66ccad86904 User: jiefu Date: 2020-03-19 08:34:20 +0000
19-03-2020

ILW = Assert due to invalid compilation level, with -XX:+BootstrapJVMCI and -XX:TieredStopAtLevel=1, disable JVMCI or remove flags = HLL = P4
19-03-2020

RFR: https://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/2020-March/037524.html
19-03-2020

It might be fixed by http://cr.openjdk.java.net/~jiefu/8241232/webrev.00/
19-03-2020