From 462c1a223d0e829d1f593073173f6cd14b19edae Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 24 Oct 2013 23:00:49 +0200 Subject: [PATCH] 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. --- src/simgrid/sg_config.c | 2 ++ 1 file changed, 2 insertions(+) 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", -- 2.20.1