Skip to content
Closed
10 changes: 7 additions & 3 deletions src/hotspot/share/jvmci/jvmci_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,13 @@ class fileStream;
"Enable JVMCI support in the VM. " \
"Defaults to true if UseJVMCICompiler is true or " \
"--add-modules=jdk.internal.vm.ci was specified. " \
"If explicity set to true on the command line OR defaulted to " \
"true by UseJVMCICompiler and libjvmci is not enabled, the " \
"behavior --add-modules=jdk.internal.vm.ci is triggered.") \
"The behavior of --add-modules=jdk.internal.vm.ci is triggered " \
"if any of the following is true: " \
"1. -XX:+EnableJVMCI is set to true on the command line. " \
"2. -XX:+EnableJVMCI is set to true by jdk/internal/vm/options " \
" in the java.base module. " \
"3. EnableJVMCI is defaulted to true by UseJVMCICompiler and " \
" libjvmci is not enabled") \
\
product(bool, UseGraalJIT, false, EXPERIMENTAL, \
"Select the Graal JVMCI compiler. This is an alias for: " \
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1802,8 +1802,8 @@ bool Arguments::check_vm_args_consistency() {
#if INCLUDE_JVMCI
if (status && EnableJVMCI) {
// Add the JVMCI module if not using libjvmci or EnableJVMCI
// was explicitly set on the command line.
if ((!UseJVMCINativeLibrary || FLAG_IS_CMDLINE(EnableJVMCI)) && ClassLoader::is_module_observable("jdk.internal.vm.ci") && !_jvmci_module_added) {
// was explicitly set on the command line or in the jimage.
if ((!UseJVMCINativeLibrary || FLAG_IS_CMDLINE(EnableJVMCI) || FLAG_IS_JIMAGE_RESOURCE(EnableJVMCI)) && ClassLoader::is_module_observable("jdk.internal.vm.ci") && !_jvmci_module_added) {
if (!create_numbered_module_property("jdk.module.addmods", "jdk.internal.vm.ci", _addmods_count++)) {
return false;
}
Expand Down