From: Arnaud Giersch Date: Sun, 27 Feb 2022 23:09:24 +0000 (+0100) Subject: Reintroduce smartptr lost with recent changes. X-Git-Tag: v3.31~289 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6538b90e2488245bcaa1520c834c3011c714976a?hp=9a07338c960a1726bfc08d94f3647a9bc8c897c5 Reintroduce smartptr lost with recent changes. Without that, ASan/TSan show errors. --- diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index a6fef78569..cd885a1e4b 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -209,7 +209,7 @@ void ActorImpl::exit() } else if (auto comm = boost::dynamic_pointer_cast(waiting_synchro_)) { comm->unregister_simcall(&simcall_); } else { - waiting_synchro_->finish(); + activity::ActivityImplPtr(waiting_synchro_)->finish(); } activities_.remove(waiting_synchro_);