aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-04-16 23:49:58 +0000
committerUlrich Drepper <drepper@redhat.com>2004-04-16 23:49:58 +0000
commit5adac0e439e09c9c078d791a0feb317628063acf (patch)
tree38816a490b1f629da3830f5e948f2e56203b4e04 /nptl
parentedb4d496a81637e9232301fe89086f164327f74a (diff)
downloadglibc-5adac0e439e09c9c078d791a0feb317628063acf.zip
glibc-5adac0e439e09c9c078d791a0feb317628063acf.tar.gz
glibc-5adac0e439e09c9c078d791a0feb317628063acf.tar.bz2
Update.
* rt/tst-mqueue6.c (mqsend): Don't inline. (mqrecv): Likewise.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog8
-rw-r--r--nptl/allocatestack.c4
-rw-r--r--nptl/descr.h4
-rw-r--r--nptl/pthread_getattr_np.c2
4 files changed, 16 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index d1f5229..c37f1c9 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,11 @@
+2004-04-16 Ulrich Drepper <drepper@redhat.com>
+
+ * allocatestack.c (allocate_stack): Set reported_guardsize
+ unconditionally.
+ * pthread_getattr_np.c (pthread_getattr_np): Use
+ reported_guardsize instead of guardsize.
+ * descr.h (struct pthread): Add reported_guardsize field.
+
2004-04-13 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/mq_notify.c: Shut up GCC warning.
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index 4b5af82..33fbbaa 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -618,6 +618,10 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
pd->guardsize = guardsize;
}
+ /* The pthread_getattr_np() calls need to get passed the size
+ requested in the attribute, regardless of how large the
+ actually used guardsize is. */
+ pd->reported_guardsize = guardsize;
}
#ifndef __ASSUME_CLONE_STOPPED
diff --git a/nptl/descr.h b/nptl/descr.h
index a6e35ba..3611698 100644
--- a/nptl/descr.h
+++ b/nptl/descr.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -236,6 +236,8 @@ struct pthread
size_t stackblock_size;
/* Size of the included guard area. */
size_t guardsize;
+ /* This is what the user specified and what we will report. */
+ size_t reported_guardsize;
/* Resolver state. */
struct __res_state res;
diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c
index d0c2c8b..ba720af 100644
--- a/nptl/pthread_getattr_np.c
+++ b/nptl/pthread_getattr_np.c
@@ -59,7 +59,7 @@ pthread_getattr_np (thread_id, attr)
iattr->flags |= ATTR_FLAG_DETACHSTATE;
/* This is the guardsize after adjusting it. */
- iattr->guardsize = thread->guardsize;
+ iattr->guardsize = thread->reported_guardsize;
/* The sizes are subject to alignment. */
if (__builtin_expect (thread->stackblock != NULL, 1))