diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-27 05:52:01 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-27 05:52:01 +0000 |
commit | 51f948727d8e76418fc1d1f31a3f5b9d324eb979 (patch) | |
tree | b657b8514b764f66395e113304179fe2873ca585 /test/lib/jit_support.rb | |
parent | 9fbb66610c357cf2396620620f2fa2253939827e (diff) | |
download | ruby-51f948727d8e76418fc1d1f31a3f5b9d324eb979.tar.gz |
test_jit.rb: test unload_units
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/jit_support.rb')
-rw-r--r-- | test/lib/jit_support.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index b3fe3efbcb..2ee1329e31 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -28,8 +28,11 @@ module JITSupport end module_function - def eval_with_jit(env = nil, script, verbose: 0, min_calls: 5, save_temps: false, timeout: JIT_TIMEOUT) - args = ['--disable-gems', '--jit-wait', "--jit-verbose=#{verbose}", "--jit-min-calls=#{min_calls}"] + def eval_with_jit(env = nil, script, verbose: 0, min_calls: 5, save_temps: false, max_cache: 1000, timeout: JIT_TIMEOUT) + args = [ + '--disable-gems', '--jit-wait', "--jit-verbose=#{verbose}", + "--jit-min-calls=#{min_calls}", "--jit-max-cache=#{max_cache}", + ] args << '--jit-save-temps' if save_temps args << '-e' << script args.unshift(env) if env |