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
obey sonar and make SwappedContext::stack_ private
[simgrid.git]
/
src
/
kernel
/
context
/
ContextRaw.cpp
diff --git
a/src/kernel/context/ContextRaw.cpp
b/src/kernel/context/ContextRaw.cpp
index
f6eaf31
..
d8dab5a
100644
(file)
--- a/
src/kernel/context/ContextRaw.cpp
+++ b/
src/kernel/context/ContextRaw.cpp
@@
-200,11
+200,11
@@
RawContext::RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup
{
if (has_code()) {
#if PTH_STACKGROWTH == -1
{
if (has_code()) {
#if PTH_STACKGROWTH == -1
- ASAN_ONLY(this->asan_stack_ = static_cast<char*>(
this->stack_
) + smx_context_usable_stack_size);
+ ASAN_ONLY(this->asan_stack_ = static_cast<char*>(
get_stack()
) + smx_context_usable_stack_size);
#else
#else
- ASAN_ONLY(this->asan_stack_ =
this->stack_
);
+ ASAN_ONLY(this->asan_stack_ =
get_stack()
);
#endif
#endif
- this->stack_top_ = raw_makecontext(
this->stack_
, smx_context_usable_stack_size, RawContext::wrapper, this);
+ this->stack_top_ = raw_makecontext(
get_stack()
, smx_context_usable_stack_size, RawContext::wrapper, this);
} else {
set_maestro(this); // save maestro for run_all()
if (MC_is_active())
} else {
set_maestro(this); // save maestro for run_all()
if (MC_is_active())