Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
seriously, me
[simgrid.git] / src / mc / RegionSnapshot.cpp
index 6d50ef1..53a34f4 100644 (file)
@@ -7,8 +7,10 @@
 #include <sys/mman.h>
 
 #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);