Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove comments about non-existent support for smpi/privatization in MC.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 14 Mar 2023 15:51:08 +0000 (16:51 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 14 Mar 2023 15:51:08 +0000 (16:51 +0100)
[ci-skip]

src/mc/AddressSpace.hpp
src/mc/sosp/RemoteProcessMemory.hpp
src/mc/sosp/Snapshot.cpp

index 2ae6d4d..f817bf0 100644 (file)
@@ -76,10 +76,6 @@ public:
  *  * the current state of an existing process;
  *
  *  * a snapshot.
- *
- *  In order to support SMPI privatization, the can read the memory from the
- *  context of a given SMPI process: if specified, the code reads data from the
- *  correct SMPI privatization VMA.
  */
 class AddressSpace {
 private:
index 1e3422a..7cc058a 100644 (file)
@@ -56,7 +56,6 @@ struct IgnoredHeapRegion {
  *
  *  - reading from the process memory (`AddressSpace`);
  *  - accessing the system state of the process (heap, …);
- *  - privatization;
  *  - stack unwinding;
  *  - etc.
  */
index 08b1a97..7d9caba 100644 (file)
@@ -181,7 +181,6 @@ void Snapshot::handle_ignore()
     s_mc_snapshot_ignored_data_t ignored_data;
     ignored_data.start = (void*)region.addr;
     ignored_data.data.resize(region.size);
-    // TODO, we should do this once per privatization segment:
     get_remote_process_memory()->read_bytes(ignored_data.data.data(), region.size, remote(region.addr));
     ignored_data_.push_back(std::move(ignored_data));
   }
@@ -277,8 +276,7 @@ void Snapshot::restore(RemoteProcessMemory& memory) const
 
   // Restore regions
   for (std::unique_ptr<Region> const& region : snapshot_regions_) {
-    if (region) // privatized variables are not snapshotted
-      region.get()->restore();
+    region->restore();
   }
 
   ignore_restore();