diff options
author | deischen <deischen@FreeBSD.org> | 2005-02-13 18:38:06 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2005-02-13 18:38:06 +0000 |
commit | b08240453920c3b01dccdfdcaf4ead51c8751139 (patch) | |
tree | 20b27889e6160d6fd92154986ae191b4512a1d3f /lib/libpthread/thread/thr_private.h | |
parent | 19a07769b7834a686b200b4794c15b3711867a2b (diff) | |
download | FreeBSD-src-b08240453920c3b01dccdfdcaf4ead51c8751139.zip FreeBSD-src-b08240453920c3b01dccdfdcaf4ead51c8751139.tar.gz |
Increase the default stacksizes:
32-bit 64-bit
main thread 2MB 4MB
other threads 1MB 2MB
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
-rw-r--r-- | lib/libpthread/thread/thr_private.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index 9f9f505..c629038 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -466,14 +466,16 @@ struct pthread_attr { /* * Miscellaneous definitions. */ -#define THR_STACK_DEFAULT 65536 +#define THR_STACK32_DEFAULT (1 * 1024 * 1024) +#define THR_STACK64_DEFAULT (2 * 1024 * 1024) /* * Maximum size of initial thread's stack. This perhaps deserves to be larger * than the stacks of other threads, since many applications are likely to run * almost entirely on this stack. */ -#define THR_STACK_INITIAL 0x100000 +#define THR_STACK32_INITIAL (2 * 1024 * 1024) +#define THR_STACK64_INITIAL (4 * 1024 * 1024) /* * Define the different priority ranges. All applications have thread @@ -1034,7 +1036,7 @@ SCLASS struct pthread_attr _pthread_attr_default SCLASS_PRESET({ SCHED_RR, 0, TIMESLICE_USEC, THR_DEFAULT_PRIORITY, THR_CREATE_RUNNING, PTHREAD_CREATE_JOINABLE, NULL, - NULL, NULL, THR_STACK_DEFAULT, /* guardsize */0 + NULL, NULL, /* stacksize */0, /* guardsize */0 }); /* Default mutex attributes: */ @@ -1073,6 +1075,8 @@ SCLASS struct lock _rwlock_static_lock; SCLASS struct lock _keytable_lock; SCLASS struct lock _thread_list_lock; SCLASS int _thr_guard_default; +SCLASS int _thr_stack_default; +SCLASS int _thr_stack_initial; SCLASS int _thr_page_size; SCLASS pthread_t _thr_sig_daemon; SCLASS int _thr_debug_flags SCLASS_PRESET(0); |