This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Fix manythreads test case on s390
- From: Daniel Jacobowitz <drow at false dot org>
- To: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 14:18:33 -0400
- Subject: Re: [PATCH] Fix manythreads test case on s390
- References: <200404231633.SAA27514@faui1d.informatik.uni-erlangen.de>
On Fri, Apr 23, 2004 at 06:33:48PM +0200, Ulrich Weigand wrote:
> Hello,
>
> the new manythreads.c test case fails on s390 when using NPTL,
> because it tries to create 256 threads with default thread stack
> size (which happens to be 8MB for NPTL). This is hard to do
> when the total address space size is 2 GB...
>
> This can be fixed by using pthread_addr_setstacksize to reduce
> the thread stack size.
None of the threads run to completion in time to reuse their stack
space? I'm surprised by that (though it's certainly a valid outcome,
it's unlike how NPTL behaves elsewhere).
Anyway, I've no objection to the patch.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer