From 7af0e65bacbcf6d3f9f74988eb87bd04df001f68 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 20 Jun 2014 16:09:12 +0200 Subject: [PATCH] [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. --- src/mc/mc_checkpoint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.20.1