1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

double memory limit on MJIT.

On test with MJIT, sometimes it fails like:
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2189967
This commit is contained in:
Koichi Sasada 2019-08-09 13:02:31 +09:00
parent 0176e74d6c
commit a9fd57056c

View file

@ -1482,7 +1482,8 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
assert_equal("[fcall(proc,[],&block([],[void()]))]", parse("proc{|;y|}")) assert_equal("[fcall(proc,[],&block([],[void()]))]", parse("proc{|;y|}"))
if defined?(Process::RLIMIT_AS) if defined?(Process::RLIMIT_AS)
dir = File.dirname(__FILE__) dir = File.dirname(__FILE__)
as = (RubyVM::MJIT.enabled? ? 150 : 100) * 1024 * 1024 as = 100 * 1024 * 1024 # 100MB
as *= 2 if RubyVM::MJIT.enabled? # space for compiler
assert_in_out_err(%W(-I#{dir} -rdummyparser), assert_in_out_err(%W(-I#{dir} -rdummyparser),
"Process.setrlimit(Process::RLIMIT_AS,#{as}); "\ "Process.setrlimit(Process::RLIMIT_AS,#{as}); "\
"puts DummyParser.new('proc{|;y|!y}').parse", "puts DummyParser.new('proc{|;y|!y}').parse",