From a0e8d02d093e01fdadf8a16bc86fe18b0c4e82c3 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Jan 2005 16:02:04 +0000 Subject: Apparently SuSE 9.1's X distribution uses even bigger buffers than the standard ones. 64kB appears to be enough for a stack in that case, but let's just go nuts and make the stacks enormous, so that it takes a few more doublings of X's stack needs before we run into this problem again. The VM system should take care of not actually using most of the memory anyway. --- src/libthread/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libthread') diff --git a/src/libthread/thread.c b/src/libthread/thread.c index ff22bbaa..646d2659 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -578,7 +578,7 @@ main(int argc, char **argv) p = procalloc(); _threadsetproc(p); if(mainstacksize == 0) - mainstacksize = 65536; + mainstacksize = 256*1024; _threadcreate(p, threadmainstart, nil, mainstacksize); scheduler(p); _threaddaemonize(); -- cgit v1.2.3