diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-06-23 15:45:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-06-23 15:45:32 +0200 |
commit | 38522201c47cb2238b4dc5a2c722825badfa9ae9 (patch) | |
tree | aaa5e6859cad94dc0c6c666a2f3fe09328f8c407 | |
parent | 968c84ab6997c0e4ee5b5636c013da9febed2525 (diff) | |
download | web-38522201c47cb2238b4dc5a2c722825badfa9ae9.tar.gz web-38522201c47cb2238b4dc5a2c722825badfa9ae9.tar.bz2 web-38522201c47cb2238b4dc5a2c722825badfa9ae9.zip |
comment on PTHREAD_STACK_MIN
-rw-r--r-- | hurd/porting/guidelines.mdwn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hurd/porting/guidelines.mdwn b/hurd/porting/guidelines.mdwn index c4c864f7..66c6ae28 100644 --- a/hurd/porting/guidelines.mdwn +++ b/hurd/porting/guidelines.mdwn @@ -305,7 +305,13 @@ We could easily provide it; ## <a name="PTHREAD_STACK_MIN"> `PTHREAD_STACK_MIN` </a> -We should actually provide it. +We don't really have a minimum value. We could define it to 4096 (or ~16, which +is our actual minimum), but most applications making use of `PTHREAD_STACK_MIN` +would just crash with such a value. + +The application knows way better than the OS which stack size it needs and have +its own hint about the stack size, and thus use `PTHREAD_STACK_MIN` only as a +minimum, not as a hint. ## <a name="types"> `linux/types.h` or `asm/types.h` </a> |