< prev index next >
src/share/vm/runtime/arguments.cpp
Print this page
*** 2307,2316 ****
--- 2307,2329 ----
}
//===========================================================================================================
// 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,2412 ****
--- 2416,2426 ----
#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 >