From: Andrii Grynenko Date: Sat, 7 May 2016 05:02:15 +0000 (-0700) Subject: Don't re-throw exceptions from default FiberManager exception handler X-Git-Tag: 2016.07.26~267 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=90678e67d54d87835b6ee9d58696497e43809908;p=folly.git Don't re-throw exceptions from default FiberManager exception handler Summary: It's very unlikely that caller will handle such exceptions and FiberManager can proceed even if one task failed. DFATAL will ensure we still fail on such exceptions in debug builds. Reviewed By: yfeldblum Differential Revision: D3273573 fb-gh-sync-id: 55eba19c16429a3c89a2fdf5363fd4b55b3998a2 fbshipit-source-id: 55eba19c16429a3c89a2fdf5363fd4b55b3998a2 --- diff --git a/folly/experimental/fibers/FiberManager-inl.h b/folly/experimental/fibers/FiberManager-inl.h index 1e91a5a6..52c283f5 100644 --- a/folly/experimental/fibers/FiberManager-inl.h +++ b/folly/experimental/fibers/FiberManager-inl.h @@ -527,11 +527,9 @@ FiberManager::FiberManager( LOG(DFATAL) << "Exception " << typeid(e).name() << " with message '" << e.what() << "' was thrown in " << "FiberManager with context '" << context << "'"; - throw; } catch (...) { LOG(DFATAL) << "Unknown exception was thrown in FiberManager with " << "context '" << context << "'"; - throw; } }), timeoutManager_(std::make_shared(*loopController_)),