< prev index next >

src/share/vm/runtime/arguments.cpp

Print this page

        

@@ -2452,19 +2452,24 @@
       PrintNMTStatistics = false;
 #if INCLUDE_NMT
     }
 #endif
   }
-#if INCLUDE_JVMCI
 
+#if INCLUDE_JVMCI
   status = status && check_jvmci_args_consistency();
 
   if (EnableJVMCI) {
     if (!ScavengeRootsInCode) {
       warning("forcing ScavengeRootsInCode non-zero because JVMCI is enabled");
       ScavengeRootsInCode = 1;
     }
+    if (TieredStopAtLevel != CompLevel_full_optimization) {
+      // Currently JVMCI compiler can only work at the full optimization level
+      warning("forcing TieredStopAtLevel to full optimization because JVMCI is enabled");
+      TieredStopAtLevel = CompLevel_full_optimization;
+    }
     if (FLAG_IS_DEFAULT(TypeProfileLevel)) {
       TypeProfileLevel = 0;
     }
     if (UseJVMCICompiler) {
       if (FLAG_IS_DEFAULT(TypeProfileWidth)) {
< prev index next >