X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a622a37b47a8f601e0828801a309bef04f09908e..080e391e51390f2739098295d391680e05a6ca93:/src/kernel/context/ContextBoost.cpp diff --git a/src/kernel/context/ContextBoost.cpp b/src/kernel/context/ContextBoost.cpp index 1e65b4806b..56208f719c 100644 --- a/src/kernel/context/ContextBoost.cpp +++ b/src/kernel/context/ContextBoost.cpp @@ -33,9 +33,9 @@ BoostContext::BoostContext(std::function code, void_pfn_smxprocess_t cle /* We need to pass the bottom of the stack to make_fcontext, depending on the stack direction it may be the lower or higher address: */ #if PTH_STACKGROWTH == -1 - void* stack = static_cast(this->stack_) + smx_context_usable_stack_size; + void* stack = static_cast(get_stack()) + smx_context_usable_stack_size; #else - void* stack = this->stack_; + void* stack = get_stack(); #endif ASAN_ONLY(this->asan_stack_ = stack); #if BOOST_VERSION < 106100