This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Set default stack size from program environment



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]