mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
c25705c267
commit
ef06510265
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue