Skip to content

Commit 5c389ac

Browse files
committed
cook --add-exports=java.base/jdk.internal.misc=jdk.graal.compiler into image.
1 parent 302d5c0 commit 5c389ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/mx.sdk/mx_sdk_vm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ def _get_image_vm_options(jdk, use_upgrade_module_path, modules, synthetic_modul
835835
# This avoids unexpected issues with using the out-of-date Graal compiler in
836836
# the JDK itself.
837837
vm_options.extend(['-XX:+UnlockExperimentalVMOptions', '-XX:+EnableJVMCIProduct', '-XX:-UseJVMCICompiler', '-XX:-UnlockExperimentalVMOptions'])
838+
vm_options.extend(['--add-exports=java.base/jdk.internal.misc=jdk.graal.compiler'])
838839
else:
839840
mx.logv('[Creating JDK without -XX:+EnableJVMCIProduct]')
840841
if modules and use_upgrade_module_path:

0 commit comments

Comments
 (0)