OSDN Git Service

2004-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
authorJeff Johnston <jjohnstn@redhat.com>
Fri, 23 Apr 2004 19:01:17 +0000 (19:01 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Fri, 23 Apr 2004 19:01:17 +0000 (19:01 +0000)
        * gdb.threads/manythreads.c: Reduce thread stack size.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/manythreads.c

index 4d0d2c3..29f35e1 100644 (file)
@@ -1,3 +1,7 @@
+2004-04-23  Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.threads/manythreads.c: Reduce thread stack size.
+
 2004-04-23  Jeff Johnston  <jjohnstn@redhat.com>
 
        * gdb.threads/manythreads.c: Add copyright notice.
index bc0d9b6..e39412c 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <pthread.h>
 #include <stdio.h>
+#include <limits.h>
 
 void *
 thread_function (void *arg)
@@ -43,6 +44,7 @@ main (int argc, char **argv)
   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.  */