From ed4f766c98d4b693160370d4021e76f56dc2d82e Mon Sep 17 00:00:00 2001 From: fzyzcjy <5236035+fzyzcjy@users.noreply.github.com> Date: Mon, 4 Dec 2023 20:07:31 +0800 Subject: [PATCH] runtime: make `Runtime` unwind safe (#6189) --- tokio/src/runtime/runtime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tokio/src/runtime/runtime.rs b/tokio/src/runtime/runtime.rs index b7dfb5c9351..a8a95428095 100644 --- a/tokio/src/runtime/runtime.rs +++ b/tokio/src/runtime/runtime.rs @@ -480,6 +480,10 @@ impl Drop for Runtime { } } +impl std::panic::UnwindSafe for Runtime {} + +impl std::panic::RefUnwindSafe for Runtime {} + cfg_metrics! { impl Runtime { /// TODO