]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_context_sysv.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
split SMPI documentation into a specific file (no real change)
[simgrid.git] / src / simix / smx_context_sysv.c
index e67c326be28c17c38588f55134b6917da8d4a5fd..90e6b84df34c9b7d896b9e59d6f29021b3037362 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "xbt/parmap.h"
 #include "smx_private.h"
-#include "gras_config.h"
+#include "internal_config.h"
 #include "context_sysv_config.h"        /* loads context system definitions */
 #include "mc/mc.h"
 
@@ -168,8 +168,8 @@ smx_ctx_sysv_create_context_sized(size_t size, xbt_main_func_t code,
     sysv_maestro_context = context;
   }
 
-  if(MC_IS_ENABLED && code)
-    MC_new_stack_area(context, ((smx_process_t)((smx_context_t)context)->data)->name, &(context->uc));
+  if(MC_is_active() && code)
+    MC_new_stack_area(context, ((smx_process_t)((smx_context_t)context)->data)->name, &(context->uc), size);
 
   return (smx_context_t) context;
 }