X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f60c6c67576ca97e84d781811f9076c18f183b11..d3c8044179f575dc13b28414e9ec2bfb67c6c3d6:/src/simix/smx_context.c diff --git a/src/simix/smx_context.c b/src/simix/smx_context.c index 186b1236df..b0d7af6661 100644 --- a/src/simix/smx_context.c +++ b/src/simix/smx_context.c @@ -124,6 +124,10 @@ void *SIMIX_context_stack_new(void) { void *stack; + /* FIXME: current code for stack protection assumes that stacks are growing + * downward (PTH_STACKGROWTH == -1). Protected pages need to be but after the + * stack when PTH_STACKGROWTH == 1. */ + if (smx_context_guard_size > 0 && !MC_is_active()) { size_t size = smx_context_stack_size + smx_context_guard_size; #ifdef HAVE_MC