Skip to content

Commit 86be797

Browse files
committed
[GR-46399] Do not set Xmx for Native Image as it causes transients in CI
PullRequest: truffleruby/3981 (cherry picked from commit 4c27ab0)
1 parent b6fe7c8 commit 86be797

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,11 @@ def verify_ci(args):
297297
launchers=['bin/<exe:ruby>', 'bin/<exe:truffleruby>'],
298298
jar_distributions=['truffleruby:TRUFFLERUBY-LAUNCHER'],
299299
main_class='org.truffleruby.launcher.RubyLauncher',
300-
# Set Xmx to use a reliable amount of memory and avoid swapping
301300
build_args=[
302-
'-J-Xmx6g',
303301
'-H:+DetectUserDirectoriesInImageHeap',
304302
],
305303
# G1 is only supported on linux currently
306-
build_args_enterprise=(['-J-Xmx8g', '--gc=G1', '-H:-ProtectionKeys'] if (mx.get_os() == 'linux' and 'NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE' not in os.environ) else ['-J-Xmx7g']),
304+
build_args_enterprise=(['--gc=G1', '-H:-ProtectionKeys'] if (mx.get_os() == 'linux' and 'NATIVE_IMAGE_AUXILIARY_ENGINE_CACHE' not in os.environ) else []),
307305
language='ruby',
308306
option_vars=[
309307
'RUBYOPT',

0 commit comments

Comments
 (0)