X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a622a37b47a8f601e0828801a309bef04f09908e..080e391e51390f2739098295d391680e05a6ca93:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index f6eaf314b2..d8dab5ac34 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -200,11 +200,11 @@ RawContext::RawContext(std::function code, void_pfn_smxprocess_t cleanup { if (has_code()) { #if PTH_STACKGROWTH == -1 - ASAN_ONLY(this->asan_stack_ = static_cast(this->stack_) + smx_context_usable_stack_size); + ASAN_ONLY(this->asan_stack_ = static_cast(get_stack()) + smx_context_usable_stack_size); #else - ASAN_ONLY(this->asan_stack_ = this->stack_); + ASAN_ONLY(this->asan_stack_ = get_stack()); #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())