This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] Set default stack size from program environment
- From: "Tulio Magno Quites Machado Filho" <tuliom at linux dot vnet dot ibm dot com>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: "Ryan S. Arnold" <rsa at us dot ibm dot com>, libc-alpha at sourceware dot org
- Cc:
- Date: Fri, 01 Mar 2013 14:06:20 -0300
- Subject: Re: [PATCH v2] Set default stack size from program environment
- References: <20130115100110.GL7894@spoyarek.pnq.redhat.com><20130117000752.EFE8D2C0BC@topped-with-meat.com><20130205130832.GG19791@spoyarek.pnq.redhat.com>
Hi Siddhesh,
Siddhesh Poyarekar <siddhesh@redhat.com> writes:
ChangeLog:
* csu/libc-start.c (__pthread_initialize_minimal): Change
function arguments.
* csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
nptl/ChangeLog:
* Makefile (tests): Add tst-pthread-stack-env.
(tst-pthread-stack-env-ENV): Set environment for test.
* nptl-init.c (set_default_stacksize): New function.
(__pthread_initialize_minimal_internal): Accept ARGC, ARGV
and
ENVP. Initialize __ENVIRON and set __DEFAULT_STACKSIZE.
* tst-pthread-stack-env.c: New test case.
I noticed this test case is failing when building for Power7:
$ cat nptl/tst-pthread-stack-env.out
Stack size is 983040, should be 1048576
Have you also noticed that?
--
Tulio Magno