8173119: compiler/jvmci/events/JvmciNotifyBootstrapFinishedEventTest.java fails with custom Tiered Level set externally
authorthartmann
Mon, 06 Feb 2017 08:32:08 +0100
changeset 43937 def72508767d
parent 43936 093cd5bea2e2
child 43938 f0e4bcc4d9f3
child 43939 39f5b59549de
8173119: compiler/jvmci/events/JvmciNotifyBootstrapFinishedEventTest.java fails with custom Tiered Level set externally Summary: Check for invalid JVMCI flag combination at startup. Reviewed-by: kvn, thartmann Contributed-by: Oleg Pliss <oleg.pliss@oracle.com>
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Fri Feb 03 19:26:35 2017 -0800
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Mon Feb 06 08:32:08 2017 +0100
@@ -1894,6 +1894,11 @@
     if (FLAG_IS_DEFAULT(NewSizeThreadIncrease)) {
       FLAG_SET_DEFAULT(NewSizeThreadIncrease, 4*K);
     }
+    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)) {
       FLAG_SET_DEFAULT(TypeProfileLevel, 0);
     }
@@ -2506,8 +2511,8 @@
     }
 #endif
   }
+
 #if INCLUDE_JVMCI
-
   status = status && check_jvmci_args_consistency();
 
   if (EnableJVMCI) {