mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +02:00
Handle failures on branch_stub_hit
This commit is contained in:
parent
aba530e23b
commit
1fa519fdae
1 changed files with 5 additions and 1 deletions
|
@ -67,7 +67,8 @@ module RubyVM::MJIT
|
||||||
compile_block(asm, jit:)
|
compile_block(asm, jit:)
|
||||||
iseq.body.jit_func = @cb.write(asm)
|
iseq.body.jit_func = @cb.write(asm)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
$stderr.puts e.full_message # TODO: check verbose
|
$stderr.puts e.full_message
|
||||||
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
# Compile a branch stub.
|
# Compile a branch stub.
|
||||||
|
@ -119,6 +120,9 @@ module RubyVM::MJIT
|
||||||
end
|
end
|
||||||
|
|
||||||
return target.address
|
return target.address
|
||||||
|
rescue Exception => e
|
||||||
|
$stderr.puts e.full_message
|
||||||
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue