From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11672 invoked by alias); 23 Apr 2004 16:33:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 11661 invoked from network); 23 Apr 2004 16:33:49 -0000 Received: from unknown (HELO faui10.informatik.uni-erlangen.de) (131.188.31.10) by sources.redhat.com with SMTP; 23 Apr 2004 16:33:49 -0000 Received: from faui1d.informatik.uni-erlangen.de (faui1d [131.188.31.34]) by faui10.informatik.uni-erlangen.de (8.9.3p3/8.1.9-FAU) with ESMTP id SAA23133 for ; Fri, 23 Apr 2004 18:33:48 +0200 (CEST) From: Ulrich Weigand Received: (from weigand@localhost) by faui1d.informatik.uni-erlangen.de (8.9.3p3/8.1.6-FAU) id SAA27514 for gdb-patches@sources.redhat.com; Fri, 23 Apr 2004 18:33:48 +0200 (CEST) Message-Id: <200404231633.SAA27514@faui1d.informatik.uni-erlangen.de> Subject: [PATCH] Fix manythreads test case on s390 To: gdb-patches@sources.redhat.com Date: Fri, 23 Apr 2004 16:33:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00573.txt.bz2 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. Bye, Ulrich ChangeLog: * gdb.threads/manythreads.c: Reduce thread stack size. Index: gdb/testsuite/gdb.threads/manythreads.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/manythreads.c,v retrieving revision 1.1 diff -c -p -r1.1 manythreads.c *** gdb/testsuite/gdb.threads/manythreads.c 22 Apr 2004 22:19:40 -0000 1.1 --- gdb/testsuite/gdb.threads/manythreads.c 23 Apr 2004 16:15:20 -0000 *************** main (int argc, char **argv) *** 19,24 **** --- 19,25 ---- int i, j; pthread_attr_init (&attr); + pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN); /* Create a ton of quick-executing threads, then wait for them to complete. */ -- Dr. Ulrich Weigand weigand@informatik.uni-erlangen.de