Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
No need to switch data segment when process is finished.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 15 Mar 2018 14:23:40 +0000 (15:23 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 15 Mar 2018 14:23:40 +0000 (15:23 +0100)
src/simix/ActorImpl.cpp

index b93d874..adfd9e3 100644 (file)
@@ -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);
   }
 }