summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_stack.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2005-02-13 18:38:06 +0000
committerdeischen <deischen@FreeBSD.org>2005-02-13 18:38:06 +0000
commitb08240453920c3b01dccdfdcaf4ead51c8751139 (patch)
tree20b27889e6160d6fd92154986ae191b4512a1d3f /lib/libpthread/thread/thr_stack.c
parent19a07769b7834a686b200b4794c15b3711867a2b (diff)
downloadFreeBSD-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_stack.c')
-rw-r--r--lib/libpthread/thread/thr_stack.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_stack.c b/lib/libpthread/thread/thr_stack.c
index 484eb81..f634055 100644
--- a/lib/libpthread/thread/thr_stack.c
+++ b/lib/libpthread/thread/thr_stack.c
@@ -160,7 +160,7 @@ _thr_stack_alloc(struct pthread_attr *attr)
* If the stack and guard sizes are default, try to allocate a stack
* from the default-size stack cache:
*/
- if ((stacksize == THR_STACK_DEFAULT) &&
+ if ((stacksize == _thr_stack_default) &&
(guardsize == _thr_guard_default)) {
if ((spare_stack = LIST_FIRST(&dstackq)) != NULL) {
/* Use the spare stack. */
@@ -191,7 +191,7 @@ _thr_stack_alloc(struct pthread_attr *attr)
else {
/* Allocate a stack from usrstack. */
if (last_stack == NULL)
- last_stack = _usrstack - THR_STACK_INITIAL -
+ last_stack = _usrstack - _thr_stack_initial -
_thr_guard_default;
/* Allocate a new stack. */
@@ -245,7 +245,7 @@ _thr_stack_free(struct pthread_attr *attr)
spare_stack->guardsize = round_up(attr->guardsize_attr);
spare_stack->stackaddr = attr->stackaddr_attr;
- if (spare_stack->stacksize == THR_STACK_DEFAULT &&
+ if (spare_stack->stacksize == _thr_stack_default &&
spare_stack->guardsize == _thr_guard_default) {
/* Default stack/guard size. */
LIST_INSERT_HEAD(&dstackq, spare_stack, qe);
OpenPOWER on IntegriCloud