X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0386b99694ba4c3ab18048e7a57d46bc34201bfb..b2f752feb35d35e191205da26b5522038c04c2b6:/src/simix/smx_context_sysv.c diff --git a/src/simix/smx_context_sysv.c b/src/simix/smx_context_sysv.c index 7fc7f6f13d..02131639a5 100644 --- a/src/simix/smx_context_sysv.c +++ b/src/simix/smx_context_sysv.c @@ -1,6 +1,6 @@ /* context_sysv - context switching with ucontexts from System V */ -/* Copyright (c) 2009-2014. The SimGrid Team. +/* Copyright (c) 2009-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -152,9 +152,12 @@ smx_ctx_sysv_create_context(xbt_main_func_t code, int argc, char **argv, sysv_maestro_context = context; } - if(MC_is_active() && code) - MC_new_stack_area(context->stack, ((smx_context_t)context)->process->name, +#ifdef HAVE_MC + if (MC_is_active() && code) { + MC_register_stack_area(context->stack, ((smx_context_t)context)->process, &(context->uc), smx_context_usable_stack_size); + } +#endif return (smx_context_t) context; }