Skip to content

Commit a86c964

Browse files
committed
[GR-46399] Set Xmx when building native images to use a reliable amount of memory
PullRequest: truffleruby/3901
2 parents 23ab4e1 + 539c153 commit a86c964

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mx.truffleruby/mx_truffleruby.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,14 @@ def verify_ci(args):
313313
jar_distributions=['truffleruby:TRUFFLERUBY-LAUNCHER'],
314314
main_class='org.truffleruby.launcher.RubyLauncher',
315315
build_args=[
316+
'-J-Xmx5g', # Set Xmx to use a reliable amount of memory
316317
'-H:+DumpThreadStacksOnSignal',
317318
'-H:+DetectUserDirectoriesInImageHeap',
318319
'-H:+TruffleCheckBlockListMethods'
319320
],
321+
build_args_enterprise=[
322+
'-J-Xmx6g', # Set Xmx to use a reliable amount of memory
323+
],
320324
language='ruby',
321325
option_vars=[
322326
'RUBYOPT',

0 commit comments

Comments
 (0)