X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/356d964ef596cb5f8905b6a6f54a1053d8ad86b6..23f5bf52cc58cf837840f231cf638e9fcd45097b:/src/simix/smx_context_base.c diff --git a/src/simix/smx_context_base.c b/src/simix/smx_context_base.c index 8fd10e4865..97cbb0ca6f 100644 --- a/src/simix/smx_context_base.c +++ b/src/simix/smx_context_base.c @@ -10,6 +10,7 @@ #include "xbt/function_types.h" #include "simgrid/simix.h" #include "smx_private.h" +#include "mc/mc.h" XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(bindings); @@ -46,6 +47,10 @@ smx_ctx_base_factory_create_context_sized(size_t size, { smx_context_t context = xbt_malloc0(size); + /* Store the address of the stack in heap to compare it apart of heap comparison */ + if(MC_is_active()) + MC_ignore_heap(context, size); + /* If the user provided a function for the process then use it. Otherwise, it is the context for maestro and we should set it as the current context */