< prev index next >
src/share/vm/runtime/arguments.cpp
Print this page
@@ -2307,10 +2307,23 @@
}
//===========================================================================================================
// Parsing of main arguments
+// Check consistency of JVMCI args
+#if INCLUDE_JVMCI
+bool Arguments::check_jvmci_flag_consistency() {
+
+ if (!EnableJVMCI && UseJVMCICompiler) {
+ jio_fprintf(defaultStream::error_stream(), "EnableJVMCI must be enabled\n"
+ "Improperly specified VM option 'UseJVMCICompiler'\n");
+ return false;
+ }
+ return true;
+}
+#endif
+
// Check consistency of GC selection
bool Arguments::check_gc_consistency() {
// Ensure that the user has not selected conflicting sets
// of collectors.
uint i = 0;
@@ -2403,10 +2416,11 @@
#if INCLUDE_NMT
}
#endif
}
#if INCLUDE_JVMCI
+ status = status && check_jvmci_flag_consistency();
if (EnableJVMCI) {
if (!ScavengeRootsInCode) {
warning("forcing ScavengeRootsInCode non-zero because JVMCI is enabled");
ScavengeRootsInCode = 1;
}
< prev index next >