Handle failures on branch_stub_hit
This commit is contained in:
parent
aba530e23b
commit
1fa519fdae
@ -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…
x
Reference in New Issue
Block a user