X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72d32c4e88a57f4786f62fec48a1bfa454adbff9..db93bfcc458411f563c4cb4569a6ef26e6f710e8:/src/mc/sosp/Region.hpp diff --git a/src/mc/sosp/Region.hpp b/src/mc/sosp/Region.hpp index e1685d1afa..cf7b748577 100644 --- a/src/mc/sosp/Region.hpp +++ b/src/mc/sosp/Region.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -35,7 +35,7 @@ private: ChunkedData chunks_; public: - Region(RegionType type, void* start_addr, size_t size); + Region(PageStore& store, RemoteProcessMemory& memory, RegionType type, void* start_addr, size_t size); Region(Region const&) = delete; Region& operator=(Region const&) = delete; Region(Region&& that) = delete; @@ -58,7 +58,7 @@ public: bool contain(RemotePtr p) const { return p >= start() && p < end(); } /** @brief Restore a region from a snapshot */ - void restore() const; + void restore(RemoteProcessMemory& memory) const; /** @brief Read memory that was snapshotted in this region *