X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4c3d4cccb2f5fb04a2bc157ca321e107711cca53..53dd673a07059d04f7ee5c280470958856fdf8d8:/src/mc/RegionSnapshot.cpp diff --git a/src/mc/RegionSnapshot.cpp b/src/mc/RegionSnapshot.cpp index 6d50ef1873..53a34f4a42 100644 --- a/src/mc/RegionSnapshot.cpp +++ b/src/mc/RegionSnapshot.cpp @@ -7,8 +7,10 @@ #include #include "mc/mc.h" -#include "mc_snapshot.h" -#include "RegionSnapshot.hpp" +#include "src/mc/mc_snapshot.h" + +#include "src/mc/ChunkedData.hpp" +#include "src/mc/RegionSnapshot.hpp" extern "C" { @@ -102,6 +104,7 @@ RegionSnapshot sparse_region(RegionType region_type, RegionSnapshot const* ref_region) { simgrid::mc::Process* process = &mc_model_checker->process(); + assert(process != NULL); bool use_soft_dirty = _sg_mc_sparse_checkpoint && _sg_mc_soft_dirty && ref_region != nullptr @@ -122,7 +125,7 @@ RegionSnapshot sparse_region(RegionType region_type, ref_page_numbers = ref_region->page_data().pagenos(); } - simgrid::mc::PerPageCopy page_data( + simgrid::mc::ChunkedData page_data( mc_model_checker->page_store(), *process, permanent_addr, page_count, ref_page_numbers, use_soft_dirty ? pagemap.data() : nullptr);