A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Make Snapshot::snapshot_regions a std::vector
[simgrid.git]
/
src
/
mc
/
mc_snapshot.h
diff --git
a/src/mc/mc_snapshot.h
b/src/mc/mc_snapshot.h
index
1a58db8
..
17c64d8
100644
(file)
--- a/
src/mc/mc_snapshot.h
+++ b/
src/mc/mc_snapshot.h
@@
-12,6
+12,7
@@
#include <vector>
#include <set>
#include <vector>
#include <set>
+#include <memory>
#include <simgrid_config.h>
#include "../xbt/mmalloc/mmprivate.h"
#include <simgrid_config.h>
#include "../xbt/mmalloc/mmprivate.h"
@@
-140,8
+141,7
@@
public: // To be private
mc_process_t process;
int num_state;
size_t heap_bytes_used;
mc_process_t process;
int num_state;
size_t heap_bytes_used;
- mc_mem_region_t* snapshot_regions;
- size_t snapshot_regions_count;
+ std::vector<std::unique_ptr<s_mc_mem_region_t>> snapshot_regions;
std::set<pid_t> enabled_processes;
int privatization_index;
std::vector<size_t> stack_sizes;
std::set<pid_t> enabled_processes;
int privatization_index;
std::vector<size_t> stack_sizes;