From 0057022f7eac67cead06ab83249155fadd700c5f Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 27 Sep 2009 20:44:25 +0000 Subject: [PATCH] * gdb.threads/manythreads.c (main): Increase thread stack size to 2*PTHREAD_STACK_MIN. * gdb.threads/multi-create.c (main): Likewise. (create_function): Likewise. --- gdb/testsuite/ChangeLog | 7 +++++++ gdb/testsuite/gdb.threads/manythreads.c | 2 +- gdb/testsuite/gdb.threads/multi-create.c | 4 ++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 159822fbed7..407832e808c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2009-09-27 Ulrich Weigand + + * 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 * gdb.base/dump.exp: Pass difference of pointer types instead diff --git a/gdb/testsuite/gdb.threads/manythreads.c b/gdb/testsuite/gdb.threads/manythreads.c index 1eb2caba20d..d2d80830a13 100644 --- a/gdb/testsuite/gdb.threads/manythreads.c +++ b/gdb/testsuite/gdb.threads/manythreads.c @@ -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 diff --git a/gdb/testsuite/gdb.threads/multi-create.c b/gdb/testsuite/gdb.threads/multi-create.c index a3411535978..a90816f7ec6 100644 --- a/gdb/testsuite/gdb.threads/multi-create.c +++ b/gdb/testsuite/gdb.threads/multi-create.c @@ -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) { -- 2.30.2