Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Reset the softdirty bits *before* restoring the ignored bytes (not after)
[simgrid.git] / src / mc / mc_checkpoint.c
index 722e3d5d744f293b6f2ee09564f6c493c0606993..c07f6661df0132f9cc0fd2e887b855fbf4b918d6 100644 (file)
@@ -630,10 +630,11 @@ void MC_restore_snapshot(mc_snapshot_t snapshot)
     switch_data_segment(snapshot->privatization_index);
   }
 
-  MC_snapshot_ignore_restore(snapshot);
   if (_sg_mc_sparse_checkpoint && _sg_mc_soft_dirty) {
     mc_softdirty_reset();
   }
+
+  MC_snapshot_ignore_restore(snapshot);
   mc_model_checker->parent_snapshot = snapshot;
 }