Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factorize some of the ASAN_ONLY code.
[simgrid.git] / src / kernel / context / ContextRaw.cpp
index ffffc65..c7a0a1c 100644 (file)
@@ -199,11 +199,6 @@ RawContext::RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup
     : SwappedContext(std::move(code), cleanup, actor, factory)
 {
    if (has_code()) {
-#if PTH_STACKGROWTH == -1
-     ASAN_ONLY(this->asan_stack_ = static_cast<char*>(get_stack()) + smx_context_usable_stack_size);
-#else
-     ASAN_ONLY(this->asan_stack_ = get_stack());
-#endif
      this->stack_top_ = raw_makecontext(get_stack(), smx_context_usable_stack_size, RawContext::wrapper, this);
    } else {
      if (MC_is_active())