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>
--- 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) {