From: Gabriel Corona Date: Fri, 20 Jun 2014 14:09:12 +0000 (+0200) Subject: [mc] Reset the softdirty bits *before* restoring the ignored bytes (not after) X-Git-Tag: v3_12~956^2~1^2~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7af0e65bacbcf6d3f9f74988eb87bd04df001f68?ds=sidebyside [mc] Reset the softdirty bits *before* restoring the ignored bytes (not after) 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. --- diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 722e3d5d74..c07f6661df 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -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; }