[PATCH] Fix manythreads test case on s390

Ulrich Weigand weigand@i1.informatik.uni-erlangen.de
Fri Apr 23 19:25:00 GMT 2004


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



More information about the Gdb-patches mailing list