summaryrefslogtreecommitdiff
path: root/src/thread/default_attr.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-18 23:06:50 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-18 23:06:50 -0400
commit792f32772e64a32527cd455ebfa087ef434a6f4f (patch)
tree529bab8e8047cdd70f64a4113fb4bc1932180964 /src/thread/default_attr.c
parentc7ed3e909a69d34a7821f7db644c2fa590a1a690 (diff)
downloadmusl-792f32772e64a32527cd455ebfa087ef434a6f4f.tar.gz
limit the configurable default stack/guard size for threads
limit to 8MB/1MB, repectively. since the defaults cannot be reduced once increased, excessively large settings would lead to an unrecoverably broken state. this change is in preparation to allow defaults to be increased via program headers at the linker level. creation of threads that really need larger sizes needs to be done with an explicit attribute.
Diffstat (limited to 'src/thread/default_attr.c')
-rw-r--r--src/thread/default_attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/default_attr.c b/src/thread/default_attr.c
index 46fe98ee..dce96409 100644
--- a/src/thread/default_attr.c
+++ b/src/thread/default_attr.c
@@ -1,4 +1,4 @@
#include "pthread_impl.h"
-size_t __default_stacksize = DEFAULT_STACK_SIZE;
-size_t __default_guardsize = DEFAULT_GUARD_SIZE;
+unsigned __default_stacksize = DEFAULT_STACK_SIZE;
+unsigned __default_guardsize = DEFAULT_GUARD_SIZE;