aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-17 05:16:26 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-17 05:16:26 +0000
commitfb9d5c7388cad80712efccff2612f39874ecec20 (patch)
treef4aef01a123fbe0bbf2b32784b246c4795dabf44 /nptl
parent9aa191b86c70d82f59f67b31a6e025ab60e0100a (diff)
downloadglibc-fb9d5c7388cad80712efccff2612f39874ecec20.zip
glibc-fb9d5c7388cad80712efccff2612f39874ecec20.tar.gz
glibc-fb9d5c7388cad80712efccff2612f39874ecec20.tar.bz2
Update.
2004-12-16 Ulrich Drepper <drepper@redhat.com> * tst-context1.c (stacks): Use bigger stack size.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog4
-rw-r--r--nptl/tst-context1.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index f551a54..927bd78 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-16 Ulrich Drepper <drepper@redhat.com>
+
+ * tst-context1.c (stacks): Use bigger stack size.
+
2004-12-16 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: New file.
diff --git a/nptl/tst-context1.c b/nptl/tst-context1.c
index 1a019ad..fcbeade 100644
--- a/nptl/tst-context1.c
+++ b/nptl/tst-context1.c
@@ -37,7 +37,7 @@ typedef struct {
unsigned long guard[3];
} tst_context_t;
-static char stacks[N][PTHREAD_STACK_MIN];
+static char stacks[N][2 * PTHREAD_STACK_MIN];
static tst_context_t ctx[N][2];
static volatile int failures;
@@ -110,7 +110,7 @@ tf (void *arg)
printf ("%d: %s: before makecontext\n", n, __FUNCTION__);
ctx[n][1].uctx.uc_stack.ss_sp = stacks[n];
- ctx[n][1].uctx.uc_stack.ss_size = PTHREAD_STACK_MIN;
+ ctx[n][1].uctx.uc_stack.ss_size = sizeof (stacks[n]);
ctx[n][1].uctx.uc_link = &ctx[n][0].uctx;
makecontext (&ctx[n][1].uctx, (void (*) (void)) fct, 1, (long int) n);