X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/828051fe59310d56345308ffdee031f35328484b..27ef78997bbc722303efdb9826ea745a3814a82a:/src/kernel/context/ContextRaw.cpp diff --git a/src/kernel/context/ContextRaw.cpp b/src/kernel/context/ContextRaw.cpp index 47fe3f057c..4cc658a0cf 100644 --- a/src/kernel/context/ContextRaw.cpp +++ b/src/kernel/context/ContextRaw.cpp @@ -197,12 +197,13 @@ RawContext* RawContextFactory::create_context(std::function&& code, acto RawContext::RawContext(std::function&& code, actor::ActorImpl* actor, SwappedContextFactory* factory) : SwappedContext(std::move(code), actor, factory) { - if (has_code()) { - this->stack_top_ = raw_makecontext(get_stack(), smx_context_stack_size, smx_ctx_wrapper, this); - } else { - if (MC_is_active()) - MC_ignore_heap(&stack_top_, sizeof(stack_top_)); - } + XBT_VERB("Creating a context of stack %uMb", smx_context_stack_size / 1024 / 1024); + if (has_code()) { + this->stack_top_ = raw_makecontext(get_stack(), smx_context_stack_size, smx_ctx_wrapper, this); + } else { + if (MC_is_active()) + MC_ignore_heap(&stack_top_, sizeof(stack_top_)); + } } void RawContext::swap_into_for_real(SwappedContext* to_)