зеркало из https://github.com/github/ruby.git
RJIT: Prefer STDERR over $stderr
When $stderr is redirected, you'll have no way to see why RJIT got broken. This reference must always be the actual stderr.
This commit is contained in:
Родитель
c25705c267
Коммит
ef06510265
|
@ -67,8 +67,8 @@ module RubyVM::RJIT
|
|||
compile_block(asm, jit:, pc:)
|
||||
iseq.body.jit_entry = @cb.write(asm)
|
||||
rescue Exception => e
|
||||
$stderr.puts "#{e.class}: #{e.message}"
|
||||
$stderr.puts e.backtrace
|
||||
STDERR.puts "#{e.class}: #{e.message}"
|
||||
STDERR.puts e.backtrace
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
@ -110,7 +110,7 @@ module RubyVM::RJIT
|
|||
|
||||
return block.start_addr
|
||||
rescue Exception => e
|
||||
$stderr.puts e.full_message
|
||||
STDERR.puts e.full_message
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
@ -165,7 +165,7 @@ module RubyVM::RJIT
|
|||
|
||||
return target.address
|
||||
rescue Exception => e
|
||||
$stderr.puts e.full_message
|
||||
STDERR.puts e.full_message
|
||||
exit 1
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче