[PATCH v2] Fix stacksize returned for main process thread when RLIMIT_STACK is relevant

Siddhesh Poyarekar siddhesh@redhat.com
Tue Jun 19 03:41:00 GMT 2012


Hi,

This is version 2 of the patch. I have removed the conditional that
Kosaki pointed out as unnecessary; everything else remains the same.

nptl/ChangeLog:

2012-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>

	* Makefile (tests): Add test case.
	* pthread_getattr_np.c (pthread_getattr_np): Deduct pages below
	the __libc_stack_end page from stacksize.  Truncate stacksize
	to make it page aligned when it is computed from RLIMIT_STACK.
	* tst-pthread-getattr.c: New test case. Verify that stackaddr
	is accessible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread-getattr.patch
Type: text/x-patch
Size: 4246 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120619/7df2ec44/attachment.bin>


More information about the Libc-alpha mailing list