pub fn set_gc_test_hook(hook: fn(&[StackRoot]))
Set a hook to be called during gc_trigger with the collected roots.