Skip to content

Commit 47d21f7

Browse files
dougxcmur47x111
authored andcommitted
Adapt JDK-8345826: Do not automatically resolve jdk.internal.vm.ci when libgraal is used
1 parent 7d79273 commit 47d21f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sdk/mx.sdk/mx_sdk_vm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,9 @@ def _get_image_vm_options(jdk, use_upgrade_module_path, modules, synthetic_modul
836836
if default_to_jvmci or 'jdk.graal.compiler' in non_synthetic_modules:
837837
threads = get_JVMCIThreadsPerNativeLibraryRuntime(jdk)
838838
vm_options.extend(['-XX:+UnlockExperimentalVMOptions', '-XX:+EnableJVMCIProduct'])
839+
# -XX:+EnableJVMCI must be explicitly specified to the java launcher to add
840+
# jdk.internal.vm.ci to the root set (JDK-8345826)
841+
vm_options.append('-XX:+EnableJVMCI')
839842
if threads is not None and threads != 1:
840843
vm_options.append('-XX:JVMCIThreadsPerNativeLibraryRuntime=1')
841844
if default_to_jvmci == 'lib':

0 commit comments

Comments
 (0)