aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-context1.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-12-17 10:09:19 +0000
committerJakub Jelinek <jakub@redhat.com>2004-12-17 10:09:19 +0000
commit337cd636a17559b7fba33c480759a4e6187e0647 (patch)
tree6195524bb75b92e28500e9c4153265a409ede509 /nptl/tst-context1.c
parent6ec2d7443853bce3f0957712540be6b296c1a672 (diff)
downloadglibc-337cd636a17559b7fba33c480759a4e6187e0647.tar
glibc-337cd636a17559b7fba33c480759a4e6187e0647.tar.gz
glibc-337cd636a17559b7fba33c480759a4e6187e0647.tar.bz2
glibc-337cd636a17559b7fba33c480759a4e6187e0647.zip
Updated to fedora-glibc-20041217T0906cvs/fedora-glibc-2_3_3-97
Diffstat (limited to 'nptl/tst-context1.c')
-rw-r--r--nptl/tst-context1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/tst-context1.c b/nptl/tst-context1.c
index 1a019ad000..fcbeadeea0 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);