Skip to content

Commit 607638d

Browse files
committed
[GR-35405] Do not set Xmx for specs & MRI tests
* It's too hard to predict a correct value and it can result in OOM on some platforms, or excessive GC which can cause timeouts. The default heap is used instead.
1 parent b29826b commit 607638d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tool/jt.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def test(*args)
12161216

12171217
truffle_args = []
12181218
if truffleruby?
1219-
vm_args, ruby_args, _parsed_options = ruby_options({}, %w[--vm.Xmx2G --reveal --experimental-options --testing-rubygems])
1219+
vm_args, ruby_args, _parsed_options = ruby_options({}, %w[--reveal --experimental-options --testing-rubygems])
12201220
truffle_args = vm_args + ruby_args
12211221
end
12221222

@@ -1590,7 +1590,6 @@ def mspec(*args)
15901590
end
15911591

15921592

1593-
vm_args << (truffleruby_native? ? '--vm.Xmx3G' : '--vm.Xmx2G')
15941593
vm_args << '--polyglot' if truffleruby_jvm?
15951594
# Until pattern matching is complete, we enable it in specs but not globally
15961595
vm_args << '--experimental-options' << '--pattern-matching'

0 commit comments

Comments
 (0)