diff options
author | Takashi Kokubun <[email protected]> | 2023-02-10 15:22:05 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:41:35 -0800 |
commit | 1fa519fdae39928fefa7845db9fa17aa8bafe21e (patch) | |
tree | 9770054f3c6e50f733c3bb1bd21e89ab2f62d537 /lib/ruby_vm | |
parent | aba530e23b463c3a682ab9bc233568c684d1fe81 (diff) |
Handle failures on branch_stub_hit
Diffstat (limited to 'lib/ruby_vm')
-rw-r--r-- | lib/ruby_vm/mjit/compiler.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb index 4f5779b593..2ad01ef669 100644 --- a/lib/ruby_vm/mjit/compiler.rb +++ b/lib/ruby_vm/mjit/compiler.rb @@ -67,7 +67,8 @@ module RubyVM::MJIT compile_block(asm, jit:) iseq.body.jit_func = @cb.write(asm) rescue Exception => e - $stderr.puts e.full_message # TODO: check verbose + $stderr.puts e.full_message + exit 1 end # Compile a branch stub. @@ -119,6 +120,9 @@ module RubyVM::MJIT end return target.address + rescue Exception => e + $stderr.puts e.full_message + exit 1 end private |