From 0dc82eddc9b30d45f09fafed1d4fd6230d9b4aa4 Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Wed, 26 Apr 2023 08:56:17 +0200 Subject: [PATCH] Raise max heap for libpolyglot and polybench. --- substratevm/mx.substratevm/mx_substratevm.py | 1 + .../native-image/org.graalvm.polybench/native-image.properties | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 vm/src/org.graalvm.polybench/src/META-INF/native-image/org.graalvm.polybench/native-image.properties diff --git a/substratevm/mx.substratevm/mx_substratevm.py b/substratevm/mx.substratevm/mx_substratevm.py index 6701931a85e29..bf4d09c803982 100644 --- a/substratevm/mx.substratevm/mx_substratevm.py +++ b/substratevm/mx.substratevm/mx_substratevm.py @@ -1065,6 +1065,7 @@ def _native_image_launcher_extra_jvm_args(): "substratevm:POLYGLOT_NATIVE_API_HEADERS", ], polyglot_lib_build_args=[ + "-J-Xmx14g", # GR-45673: temporarily raise max heap for libpolyglot "--macro:truffle", "-H:Features=org.graalvm.polyglot.nativeapi.PolyglotNativeAPIFeature", "-Dorg.graalvm.polyglot.nativeapi.libraryPath=${java.home}/lib/polyglot/", diff --git a/vm/src/org.graalvm.polybench/src/META-INF/native-image/org.graalvm.polybench/native-image.properties b/vm/src/org.graalvm.polybench/src/META-INF/native-image/org.graalvm.polybench/native-image.properties new file mode 100644 index 0000000000000..5604aa07417c9 --- /dev/null +++ b/vm/src/org.graalvm.polybench/src/META-INF/native-image/org.graalvm.polybench/native-image.properties @@ -0,0 +1,2 @@ +# GR-45673: temporarily raise max heap for polybench until all languages have dropped their Xmx flag +Args = -J-Xmx14g