From 38522201c47cb2238b4dc5a2c722825badfa9ae9 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 23 Jun 2014 15:45:32 +0200 Subject: comment on PTHREAD_STACK_MIN --- hurd/porting/guidelines.mdwn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; ## `PTHREAD_STACK_MIN` -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. ## `linux/types.h` or `asm/types.h` -- cgit v1.2.3