Open
Description
Currently MMTk panics using Rust's built-in panic mechanism. However, this may not work with some runtimes. @wks found that in Ruby, panicking in a Rust thread does not cause the process to crash. We probably need an API similar to Collection::out_of_memory()
and allow the runtime to implement panic in their own way.
mmtk-core/src/vm/collection.rs
Line 91 in a272c23
See https://doc.rust-lang.org/std/panic/fn.set_hook.html.
We need to be careful that we should only capture MMTk's panic. If the runtime has other component written in Rust, we should not capture their panic.