* * 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:
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));
}
// 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();