From: Arnaud Giersch Date: Thu, 24 Oct 2013 21:00:49 +0000 (+0200) Subject: Correctly remember when "contexts/stack_size" was not set by the user. X-Git-Tag: v3_10_rc1~74 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/462c1a223d0e829d1f593073173f6cd14b19edae Correctly remember when "contexts/stack_size" was not set by the user. The main effect is to use the system default for thread stack size. --- diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 5b8a40610f..b57bc229c1 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -628,6 +628,8 @@ void sg_config_init(int *argc, char **argv) "Stack size of contexts in Kib", xbt_cfgelm_int, 1, 1, _sg_cfg_cb_context_stack_size, NULL); xbt_cfg_setdefault_int(_sg_cfg_set, "contexts/stack_size", 128); + /* No, it was not set yet (the above setdefault() changed this to 1). */ + smx_context_stack_size_was_set = 0; /* number of parallel threads for user processes */ xbt_cfg_register(&_sg_cfg_set, "contexts/nthreads",