This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Document GLIBC_PTHREAD_DEFAULT_STACKSIZE environmentvariable
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org
- Date: Fri, 1 Mar 2013 18:56:51 +0530
- Subject: Re: [PATCH] Document GLIBC_PTHREAD_DEFAULT_STACKSIZE environmentvariable
- References: <20130115100110.GL7894@spoyarek.pnq.redhat.com><20130117000752.EFE8D2C0BC@topped-with-meat.com><20130205130832.GG19791@spoyarek.pnq.redhat.com><51301FB2.2020706@redhat.com><20130301092615.GK2358@spoyarek.pnq.redhat.com><5130AA86.2040406@redhat.com>
On Fri, Mar 01, 2013 at 08:17:58AM -0500, Carlos O'Donell wrote:
> `If the size is less than the minimum required POSIX stack size i.e.
> @code{PTHREAD_STACK_MIN}, then it is ignored and the minimum stack size is used.'
>
> `If @code{GLIBC_PTHREAD_DEFAULT_STACKZIE} is not set, and @code{RLIMIT_STACK}
> is set to a value other than @code{RLIM_INFINITY}, then @code{RLIMIT_STACK} is
> used as the default thread stack size, otherwise an implementation dependent
> stack size is used.'
>
> What do you think about that last paragraph which helps clarify some of the
> defaults in the event the env-var is not set?
Looks good. I'll add it before I commit (which will be after you
review the latest iteration of my thread_local patch).
Siddhesh