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 s_mc_snapshot_stack::stack_frames 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
85683f7
..
e725c1d
100644
(file)
--- a/
src/mc/mc_snapshot.h
+++ b/
src/mc/mc_snapshot.h
@@
-121,11
+121,11
@@
typedef struct s_local_variable{
typedef struct s_mc_snapshot_stack{
std::vector<s_local_variable> local_variables;
mc_unw_context_t context;
typedef struct s_mc_snapshot_stack{
std::vector<s_local_variable> local_variables;
mc_unw_context_t context;
- xbt_dynar_t stack_frames; // mc_stack_frame_t
+ std::vector<s_mc_stack_frame_t> stack_frames;
int process_index;
s_mc_snapshot_stack()
int process_index;
s_mc_snapshot_stack()
- : context(nullptr),
stack_frames(nullptr),
process_index(0)
+ : context(nullptr), process_index(0)
{}
~s_mc_snapshot_stack();
s_mc_snapshot_stack(s_mc_snapshot_stack& p) = delete;
{}
~s_mc_snapshot_stack();
s_mc_snapshot_stack(s_mc_snapshot_stack& p) = delete;
@@
-140,8
+140,6
@@
typedef struct s_mc_snapshot_stack{
this->local_variables = std::move(that.local_variables);
this->context = std::move(that.context);
that.context = nullptr;
this->local_variables = std::move(that.local_variables);
this->context = std::move(that.context);
that.context = nullptr;
- this->stack_frames = std::move(that.stack_frames);
- that.stack_frames = nullptr;
this->process_index = that.process_index;
that.process_index = 0;
return *this;
this->process_index = that.process_index;
that.process_index = 0;
return *this;