tst-pthread-getattr changes break sparc
Siddhesh Poyarekar
siddhesh@redhat.com
Fri Jul 27 17:20:00 GMT 2012
On Fri, 27 Jul 2012 09:55:31 -0700 (PDT), Roland wrote:
> It looks like you are assuming the exact page size instead of
> using sysconf.
Right, sorry. Updated patch attached -- I've also updated the
siddhesh/getattr branch.
Regards,
Siddhesh
nptl/ChangeLog:
2012-07-27 Siddhesh Poyarekar <siddhesh@redhat.com>
* tst-pthread-getattr.c (MAX_STACK_SIZE): New macro.
(_MIN): New macro function.
(pagesize): New static variable.
(allocate_and_test): Return MEM. Rename parameter to TARGET.
(check_stack_top): New local variable MEM. Cap stack size
to MAX_STACK_SIZE using _MIN. Call allocate_and_test for
halfway up the stack top page. Verify that the top page was
written into.
(do_test): Get pagesize using sysconf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread-test-fix.patch
Type: text/x-patch
Size: 4779 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120727/0ac1cd03/attachment.bin>
More information about the Libc-alpha
mailing list