Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Reset the softdirty bits *before* restoring the ignored bytes (not after)
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 20 Jun 2014 14:09:12 +0000 (16:09 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 20 Jun 2014 14:09:12 +0000 (16:09 +0200)
We want to know what has changed since the last per-page snapshot: we
have to reset the soft dirty bits just after the per-page restoration.

src/mc/mc_checkpoint.c

index 722e3d5..c07f666 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;
 }