Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar on rethrow
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Aug 2018 11:14:01 +0000 (13:14 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 29 Aug 2018 11:14:01 +0000 (13:14 +0200)
src/kernel/context/ContextBoost.cpp
src/kernel/context/ContextRaw.cpp
src/kernel/context/ContextThread.cpp
src/kernel/context/ContextUnix.cpp

index 121fa2b..256f677 100644 (file)
@@ -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());
     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);
   }
   context->Context::stop();
   ASAN_ONLY(context->asan_stop_ = true);
index 2edbd1d..423f13d 100644 (file)
@@ -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());
     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();
 
   }
   context->Context::stop();
 
index 92350b5..be6f65d 100644 (file)
@@ -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());
     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();
 
   }
   context->Context::stop();
 
index a861b24..4bd1ddc 100644 (file)
@@ -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());
     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);
   }
   context->Context::stop();
   ASAN_ONLY(context->asan_stop_ = true);