X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9aa56fcf0b5bca4428410cb58affa1ded43959a0..928649fec04d89b678017ec4cadbc97e5ef901f5:/src/mc/mc_snapshot.cpp diff --git a/src/mc/mc_snapshot.cpp b/src/mc/mc_snapshot.cpp index 89f5c56bc7..21cfc7b3bd 100644 --- a/src/mc/mc_snapshot.cpp +++ b/src/mc/mc_snapshot.cpp @@ -44,9 +44,9 @@ mc_mem_region_t mc_get_snapshot_region( if (process_index >= (int) region->privatized_data().size()) { xbt_die("Invalid process index"); } - mc_mem_region_t priv_region = region->privatized_data()[process_index].get(); - xbt_assert(mc_region_contain(priv_region, addr)); - return priv_region; + simgrid::mc::RegionSnapshot& priv_region = region->privatized_data()[process_index]; + xbt_assert(mc_region_contain(&priv_region, addr)); + return &priv_region; #else xbt_die("Privatized region in a non SMPI build (this should not happen)"); #endif @@ -256,55 +256,52 @@ static void test_snapshot(bool sparse_checkpoint) { // Init memory and take snapshots: init_memory(source, byte_size); - mc_mem_region_t region0 = mc_region_new_sparse( + simgrid::mc::RegionSnapshot region0 = MC_region_sparse( MC_REGION_TYPE_UNKNOWN, source, source, byte_size); for(int i=0; i