X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7a3a100990355eb757dc81106b5aac6daed0b8e1..a7c708d3570410ce5a1316a54f9dda55d2bb46ca:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index b93d87482e..e7445fb24a 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -748,8 +748,8 @@ void SIMIX_process_yield(smx_actor_t self) std::rethrow_exception(std::move(exception)); } - if(SMPI_switch_data_segment){ - SMPI_switch_data_segment(self->pid); + if (SMPI_switch_data_segment && not self->finished) { + SMPI_switch_data_segment(self->iface()); } }