From 802418321318961884ccc1078edc780129649455 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Tue, 17 Mar 2015 15:31:08 +0100 Subject: [PATCH 1/1] [mc] Read smpi_loaded_page from MCed in MC_process_init() --- src/mc/mc_checkpoint.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 61414d794a..897ff8fe59 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -278,8 +278,10 @@ static void MC_get_memory_regions(mc_process_t process, mc_snapshot_t snapshot) #ifdef HAVE_SMPI if (smpi_privatize_global_variables && MC_smpi_process_count()) { - // FIXME, cross-process - snapshot->privatization_index = smpi_loaded_page; + // snapshot->privatization_index = smpi_loaded_page + MC_process_read_variable(&mc_model_checker->process, + "smpi_loaded_page", &snapshot->privatization_index, + sizeof(snapshot->privatization_index)); } else #endif { @@ -789,6 +791,7 @@ void MC_restore_snapshot_regions(mc_snapshot_t snapshot) } #ifdef HAVE_SMPI + // TODO, send a message to implement this in the MCed process if(snapshot->privatization_index >= 0) { // We just rewrote the global variables. // The privatisation segment SMPI thinks -- 2.20.1