From: Martin Quinson Date: Wed, 29 Aug 2018 11:14:01 +0000 (+0200) Subject: please sonar on rethrow X-Git-Tag: v3_21~140 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/98cb31d0eba0219ec3409b93dc647d453d103fb9 please sonar on rethrow --- diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 121fa2b9ae..256f677f62 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -118,7 +118,7 @@ void BoostContext::wrapper(BoostContext::arg_type arg) XBT_DEBUG("Caught a StopRequest"); } catch (simgrid::Exception const& e) { XBT_INFO("Actor killed by an uncatched exception %s", simgrid::xbt::demangle(typeid(e).name()).get()); - throw e; + throw; } context->Context::stop(); ASAN_ONLY(context->asan_stop_ = true); diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index 2edbd1d402..423f13dc0f 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -266,7 +266,7 @@ void RawContext::wrapper(void* arg) XBT_DEBUG("Caught a StopRequest"); } catch (simgrid::Exception const& e) { XBT_INFO("Actor killed by an uncatched exception %s", simgrid::xbt::demangle(typeid(e).name()).get()); - throw e; + throw; } context->Context::stop(); diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index 92350b5552..be6f65ddcb 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -121,7 +121,7 @@ void *ThreadContext::wrapper(void *param) xbt_assert(not context->is_maestro(), "I'm not supposed to be maestro here."); } catch (simgrid::Exception const& e) { XBT_INFO("Actor killed by an uncatched exception %s", simgrid::xbt::demangle(typeid(e).name()).get()); - throw e; + throw; } context->Context::stop(); diff --git a/src/kernel/context/ContextUnix.cpp b/src/kernel/context/ContextUnix.cpp index a861b24d42..4bd1ddc344 100644 --- a/src/kernel/context/ContextUnix.cpp +++ b/src/kernel/context/ContextUnix.cpp @@ -127,7 +127,7 @@ void UContext::smx_ctx_sysv_wrapper(int i1, int i2) XBT_DEBUG("Caught a StopRequest"); } catch (simgrid::Exception const& e) { XBT_INFO("Actor killed by an uncatched exception %s", simgrid::xbt::demangle(typeid(e).name()).get()); - throw e; + throw; } context->Context::stop(); ASAN_ONLY(context->asan_stop_ = true);