summaryrefslogtreecommitdiff
path: root/hurd/porting
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-06-23 15:45:32 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-06-23 15:45:32 +0200
commit38522201c47cb2238b4dc5a2c722825badfa9ae9 (patch)
treeaaa5e6859cad94dc0c6c666a2f3fe09328f8c407 /hurd/porting
parent968c84ab6997c0e4ee5b5636c013da9febed2525 (diff)
comment on PTHREAD_STACK_MIN
Diffstat (limited to 'hurd/porting')
-rw-r--r--hurd/porting/guidelines.mdwn8
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>