Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix parameters given to MC_new_stack_area.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 13 Mar 2014 09:03:39 +0000 (10:03 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 13 Mar 2014 09:03:39 +0000 (10:03 +0100)
src/simix/smx_context_sysv.c

index 9db467f..4ca2244 100644 (file)
@@ -166,8 +166,8 @@ smx_ctx_sysv_create_context(xbt_main_func_t code, int argc, char **argv,
   }
 
   if(MC_is_active() && code)
-    MC_new_stack_area(context, ((smx_context_t)context)->process->name,
-                      &(context->uc), sizeof(s_smx_ctx_sysv_t));
+    MC_new_stack_area(context->stack, ((smx_context_t)context)->process->name,
+                      &(context->uc), smx_context_stack_size);
 
   return (smx_context_t) context;
 }