1998-02-19
1998-02-19 05:15:20 by Per Hedbor <ph@opera.com>
-
c3cdf2864f448be9d381c8df5f0c6182effee7b4
(5 lines)
(+3/-2)
[
Show
| Annotate
]
Branch: 7.9
I have never seen the stack reach 2Mb, but the value should be configurable, and the default should probably be somewhat lower... This fix makes roxen with threads somewhat more manageable on Digital Unix
Rev: src/threads.c:1.56
1:
#include "global.h"
- RCSID("$Id: threads.c,v 1.55 1998/01/30 06:19:51 hubbe Exp $");
+ RCSID("$Id: threads.c,v 1.56 1998/02/19 05:15:20 per Exp $");
int num_threads = 1;
int threads_disabled = 0;
605: Inside #if defined(POSIX_THREADS)
#ifdef POSIX_THREADS
pthread_attr_init(&pattr);
#ifdef HAVE_PTHREAD_ATTR_SETSTACKSIZE
- pthread_attr_setstacksize(&pattr, 2 * 1024 * 1204);
+ pthread_attr_setstacksize(&pattr, 1024 * 1204);
#endif
pthread_attr_setdetachstate(&pattr, PTHREAD_CREATE_DETACHED);