From: Arnaud Giersch Date: Fri, 9 Sep 2022 11:09:39 +0000 (+0200) Subject: Completely remove detached comms when they are finished. X-Git-Tag: v3.32~31 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c148703b3bc52cbdb36b738add851aecddb28490 Completely remove detached comms when they are finished. --- diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index e0272554cc..ed8a0f4095 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -542,6 +542,9 @@ void CommImpl::finish() if (get_state() == State::DONE) copy_data(); + if (detached_) + EngineImpl::get_instance()->get_maestro()->activities_.remove(this); + while (not simcalls_.empty()) { actor::Simcall* simcall = simcalls_.front(); simcalls_.pop_front();