X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b741bb048b44a04d99689f6b64cf6628f15e550a..b37037e5e2125306aa1c5472c9171cda0791cca0:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 50fc40b7f0..654380042d 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -7,7 +7,6 @@ #define SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP #include "simgrid/forward.h" -#include "src/internal_config.h" #include "src/kernel/activity/ActivityImpl.hpp" #include @@ -130,16 +129,6 @@ XBT_PUBLIC smx_context_t SIMIX_context_new(std::function code, void_pfn_ XBT_PUBLIC_DATA char sigsegv_stack[SIGSTKSZ]; #endif -/* We are using the bottom of the stack to save some information, like the - * valgrind_stack_id. Define smx_context_usable_stack_size to give the remaining - * size for the stack. Round its value to a multiple of 16 (asan wants the stacks to be aligned this way). */ -#if HAVE_VALGRIND_H -#define smx_context_usable_stack_size \ - ((smx_context_stack_size - sizeof(unsigned int)) & ~0xf) /* for valgrind_stack_id */ -#else -#define smx_context_usable_stack_size (smx_context_stack_size & ~0xf) -#endif - /** @brief Executes all the processes to run (in parallel if possible). */ XBT_PRIVATE void SIMIX_context_runall();