[PATCH 4/9] libpthread/nptl: do not exceed architecture specific stack default size
Mike Frysinger
vapier at gentoo.org
Sun Nov 18 10:11:53 UTC 2012
On Friday 21 September 2012 11:29:14 Florian Fainelli wrote:
> --- a/libpthread/nptl/init.c
> +++ b/libpthread/nptl/init.c
> @@ -401,6 +401,10 @@ __pthread_initialize_minimal_internal (void)
> Use the minimal size acceptable. */
> limit.rlim_cur = PTHREAD_STACK_MIN;
>
> + /* Do not exceed architecture specific default */
> + if (limit.rlim_cur > ARCH_STACK_DEFAULT_SIZE)
> + limit.rlim_cur = ARCH_STACK_DEFAULT_SIZE;
> +
> /* Make sure it meets the minimum size that allocate_stack
> (allocatestack.c) will demand, which depends on the page size. */
> const uintptr_t pagesz = sysconf (_SC_PAGESIZE);
glibc doesn't do this, so i don't think we should either. if you can convince
glibc to take it, obviously we will too. but this patch has no information as
to why this is correct or desirable.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20121118/b4e861f9/attachment.asc>
More information about the uClibc
mailing list