limit the configurable default stack/guard size for threads
authorRich Felker <dalias@aerifal.cx>
Wed, 19 Sep 2018 03:06:50 +0000 (23:06 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 19 Sep 2018 03:06:50 +0000 (23:06 -0400)
commit792f32772e64a32527cd455ebfa087ef434a6f4f
tree529bab8e8047cdd70f64a4113fb4bc1932180964
parentc7ed3e909a69d34a7821f7db644c2fa590a1a690
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.
src/internal/pthread_impl.h
src/thread/default_attr.c
src/thread/pthread_setattr_default_np.c