* gdb.threads/manythreads.c (main): Increase thread stack size
authorUlrich Weigand <uweigand@de.ibm.com>
Sun, 27 Sep 2009 20:44:25 +0000 (20:44 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sun, 27 Sep 2009 20:44:25 +0000 (20:44 +0000)
to 2*PTHREAD_STACK_MIN.
* gdb.threads/multi-create.c (main): Likewise.
(create_function): Likewise.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/manythreads.c
gdb/testsuite/gdb.threads/multi-create.c

index 159822fbed72fdbf344a37999bc5a3a531240db1..407832e808c4cb7afc8b8e3d6c8f4cd6471c579d 100644 (file)
@@ -1,3 +1,10 @@
+2009-09-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * gdb.threads/manythreads.c (main): Increase thread stack size
+       to 2*PTHREAD_STACK_MIN.
+       * gdb.threads/multi-create.c (main): Likewise.
+       (create_function): Likewise.
+
 2009-09-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * gdb.base/dump.exp: Pass difference of pointer types instead
index 1eb2caba20ded2ca51bbee8ce86cfa2c90ec4c61..d2d80830a13916c9fa5e0106e34f4dd11c1f4c14 100644 (file)
@@ -44,7 +44,7 @@ main (int argc, char **argv)
   pthread_attr_init (&attr);
 
 #ifdef PTHREAD_STACK_MIN
-  pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
+  pthread_attr_setstacksize (&attr, 2*PTHREAD_STACK_MIN);
 #endif
 
   /* Create a ton of quick-executing threads, then wait for them to
index a34115359784f8ea746fcd06fa0c0a04e2fa6fc7..a90816f7ec66d1658f9897bdb8aeca982afe3da3 100644 (file)
@@ -43,7 +43,7 @@ create_function (void *arg)
   int j;
 
   pthread_attr_init (&attr); /* set breakpoint 1 here.  */
-  pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
+  pthread_attr_setstacksize (&attr, 2*PTHREAD_STACK_MIN);
 
   /* Create a ton of quick-executing threads, then wait for them to
      complete.  */
@@ -70,7 +70,7 @@ main (int argc, char **argv)
   int n, i;
 
   pthread_attr_init (&attr);
-  pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN);
+  pthread_attr_setstacksize (&attr, 2*PTHREAD_STACK_MIN);
 
   for (n = 0; n < 100; ++n)
     {