From: Arnaud Giersch Date: Thu, 15 Mar 2018 14:23:40 +0000 (+0100) Subject: No need to switch data segment when process is finished. X-Git-Tag: v3.19~40 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c533259777a80ef9daddc0a5f9d0e265a289f1b0?hp=0e4b1ccbbce41e237bdf8a43037e21a1cdac314d;ds=inline No need to switch data segment when process is finished. --- diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index b93d87482e..adfd9e389f 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -748,7 +748,7 @@ void SIMIX_process_yield(smx_actor_t self) std::rethrow_exception(std::move(exception)); } - if(SMPI_switch_data_segment){ + if (SMPI_switch_data_segment && !self->finished) { SMPI_switch_data_segment(self->pid); } }