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: Ulrich Weigand <weigand at i1 dot informatik dot uni-erlangen dot de>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: weigand at i1 dot informatik dot uni-erlangen dot de (Ulrich Weigand), gdb-patches at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 21:25:01 +0200 (CEST)
- Subject: Re: [PATCH] Fix manythreads test case on s390
Daniel Jacobowitz wrote:
> 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).
On my system the 127th pthread_create reproducibly fails, which
is consistent with no thread stack being reused early.
Maybe it's an SMP effect (one CPU is quickly running all the
pthread_create's, while the others are executing the thread
functions, which may be slow due to printf ...)?
On the other hand, it may also be the case that running in a
virtualized environment exaggerates race windows; we've seen
plenty of examples for this.
Bye,
Ulrich
--
Dr. Ulrich Weigand
weigand@informatik.uni-erlangen.de