Skip to content

Commit 2537416

Browse files
committed
[GR-59436] Do not use Graal as JIT when running NativeImage driver.
PullRequest: graal/19155
2 parents 97c269b + 6fb2b23 commit 2537416

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

substratevm/mx.substratevm/mx_substratevm.py

+3
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,9 @@ def _native_image_launcher_extra_jvm_args():
12651265
res = [f'-XX:{max_heap_size_flag}']
12661266
if not mx_sdk_vm.jdk_enables_jvmci_by_default(get_jdk()):
12671267
res.extend(['-XX:+UnlockExperimentalVMOptions', '-XX:+EnableJVMCI'])
1268+
# Graal should not be used as the JIT compiler since SVM specific compiler extensions
1269+
# are put on the module path which can cause problems when running Graal as a HotSpot JIT.
1270+
res.append('-XX:-UseJVMCICompiler')
12681271
return res
12691272

12701273
driver_build_args = [

0 commit comments

Comments
 (0)