Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill the RegionSparse subclass now that there is no alternative
[simgrid.git] / src / mc / sosp / RegionSnapshot.cpp
index 055b582..4088d43 100644 (file)
@@ -32,14 +32,13 @@ namespace mc {
  */
 RegionSnapshot* region(RegionType type, void* start_addr, void* permanent_addr, size_t size)
 {
-    return new RegionSparse(type, start_addr, permanent_addr, size);
+  return new RegionSnapshot(type, start_addr, permanent_addr, size);
 }
 
-RegionSparse::RegionSparse(RegionType region_type, void* start_addr, void* permanent_addr, size_t size)
-    : RegionSnapshot(region_type, start_addr, permanent_addr, size)
+RegionSnapshot::RegionSnapshot(RegionType region_type, void* start_addr, void* permanent_addr, size_t size)
+    : region_type_(region_type), start_addr_(start_addr), size_(size), permanent_addr_(permanent_addr)
 {
   simgrid::mc::RemoteClient* process = &mc_model_checker->process();
-  assert(process != nullptr);
 
   xbt_assert((((uintptr_t)start_addr) & (xbt_pagesize - 1)) == 0, "Start address not at the beginning of a page");
   xbt_assert((((uintptr_t)permanent_addr) & (xbt_pagesize - 1)) == 0,