X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7512e5156110bb8ee68adcb64b1da833528412b5..8497b1d4db2663d12910568b77ec5bbd0ac1dd7d:/src/smpi/internals/smpi_memory.cpp diff --git a/src/smpi/internals/smpi_memory.cpp b/src/smpi/internals/smpi_memory.cpp index c7a62bb134..991377ab89 100644 --- a/src/smpi/internals/smpi_memory.cpp +++ b/src/smpi/internals/smpi_memory.cpp @@ -28,7 +28,6 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SMPI"); -int smpi_loaded_page = -1; char* smpi_data_exe_start = nullptr; size_t smpi_data_exe_size = 0; SmpiPrivStrategies smpi_privatize_global_variables; @@ -180,6 +179,7 @@ void* smpi_temp_shm_mmap(int fd, size_t size) */ void smpi_switch_data_segment(simgrid::s4u::ActorPtr actor) { + static aid_t smpi_loaded_page = -1; if (smpi_loaded_page == actor->get_pid()) // no need to switch, we've already loaded the one we want return;