Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
mc: cosmetics
[simgrid.git] / src / mc / sosp / RegionSnapshot.cpp
index c9388e7..f9d07da 100644 (file)
@@ -31,7 +31,7 @@ RegionSnapshot::RegionSnapshot(RegionType region_type, void* start_addr, void* p
   xbt_assert((((uintptr_t)permanent_addr) & (xbt_pagesize - 1)) == 0,
              "Permanent address not at the beginning of a page");
 
-  page_numbers_ =
+  chunks_ =
       ChunkedData(mc_model_checker->page_store(), *process, RemotePtr<void>(permanent_addr), mmu::chunk_count(size));
 }
 
@@ -42,11 +42,11 @@ RegionSnapshot::RegionSnapshot(RegionType region_type, void* start_addr, void* p
 void RegionSnapshot::restore()
 {
       xbt_assert(((permanent_address().address()) & (xbt_pagesize - 1)) == 0, "Not at the beginning of a page");
-      xbt_assert(simgrid::mc::mmu::chunk_count(size()) == page_data().page_count());
+      xbt_assert(simgrid::mc::mmu::chunk_count(size()) == chunks().page_count());
 
-      for (size_t i = 0; i != page_data().page_count(); ++i) {
+      for (size_t i = 0; i != chunks().page_count(); ++i) {
         void* target_page = (void*)simgrid::mc::mmu::join(i, (std::uintptr_t)(void*)permanent_address().address());
-        const void* source_page = page_data().page(i);
+        const void* source_page = chunks().page(i);
         mc_model_checker->process().write_bytes(source_page, xbt_pagesize, remote(target_page));
       }
 }