mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
ZJII: Address review feedback
This commit is contained in:
parent
180469a3a7
commit
c6a27a0253
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ require 'shellwords'
|
|||
require 'tempfile'
|
||||
require 'timeout'
|
||||
|
||||
ARGS = {:timeout => 5}
|
||||
ARGS = {timeout: 5}
|
||||
OptionParser.new do |opts|
|
||||
opts.banner += " <path_to_ruby> -- <options>"
|
||||
opts.on("--timeout=TIMEOUT_SEC", "Seconds until child process is killed") do |timeout|
|
||||
|
@ -76,7 +76,7 @@ def run_ruby *cmd
|
|||
stdout_data = nil
|
||||
stderr_data = nil
|
||||
status = nil
|
||||
Open3.popen3(Shellwords.join cmd) do |stdin, stdout, stderr, wait_thr|
|
||||
Open3.popen3(*cmd) do |stdin, stdout, stderr, wait_thr|
|
||||
pid = wait_thr.pid
|
||||
begin
|
||||
Timeout.timeout(ARGS[:timeout]) do
|
||||
|
@ -128,7 +128,7 @@ File.open("jitlist.txt", "w") do |file|
|
|||
file.puts(result)
|
||||
end
|
||||
puts "Run:"
|
||||
command = Shellwords.join [RUBY, "--zjit-allowed-iseqs=jitlist.txt", *OPTIONS]
|
||||
command = [RUBY, "--zjit-allowed-iseqs=jitlist.txt", *OPTIONS].shelljoin
|
||||
puts command
|
||||
puts "Reduced JIT list (available in jitlist.txt):"
|
||||
puts result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue