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_diff.cpp
diff --git
a/src/mc/mc_diff.cpp
b/src/mc/mc_diff.cpp
index
35e8779
..
06b1141
100644
(file)
--- a/
src/mc/mc_diff.cpp
+++ b/
src/mc/mc_diff.cpp
@@
-419,9
+419,9
@@
void reset_heap_information()
static inline
mc_mem_region_t MC_get_heap_region(mc_snapshot_t snapshot)
{
static inline
mc_mem_region_t MC_get_heap_region(mc_snapshot_t snapshot)
{
- size_t n = snapshot->snapshot_regions
_count
;
+ size_t n = snapshot->snapshot_regions
.size()
;
for (size_t i=0; i!=n; ++i) {
for (size_t i=0; i!=n; ++i) {
- mc_mem_region_t region = snapshot->snapshot_regions[i];
+ mc_mem_region_t region = snapshot->snapshot_regions[i]
.get()
;
if (region->region_type() == simgrid::mc::RegionType::Heap)
return region;
}
if (region->region_type() == simgrid::mc::RegionType::Heap)
return region;
}