empserver/src
Markus Armbruster 0f84c009bf update: Set thread stack size to 512 KiB
Empire 2 settled on this formula for the stack size:

	stacksize = 100000 +
    /* finish_sects */ WORLD_X * WORLD_Y * (2 * sizeof(double) +
					    sizeof(char *));

Obviously attempts to provide space for a known configuration-
dependent stack hog.  The hog went away when finish_sects()'s arrays
became dynamically allocated in 4.2.0.

Adjusting for that by dropping the extra term might well do (I observe
only a few KiB of stack used on my system).  But let's set it to 512
KiB instead to be on the safe side.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2014-01-06 20:50:06 +01:00
..
client Update copyright notice 2014-01-02 14:33:48 +01:00
lib accept: Resize thread stack to avoid stack smash for small worlds 2014-01-06 20:50:06 +01:00
scripts New make target check 2013-05-08 06:55:11 +02:00
server update: Set thread stack size to 512 KiB 2014-01-06 20:50:06 +01:00
util Update copyright notice 2014-01-02 14:33:48 +01:00