about summary refs log tree commit diff
path: root/linuxthreads/internals.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-16 23:16:52 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-16 23:16:52 +0000
commit76a16b8fcb8a61a469648844183fb6c04c39725c (patch)
tree35966ce238573f5a19acc39c5c288554022dea7e /linuxthreads/internals.h
parent9c6f68cdc9aa83deb3b7d4505e30ba37055b8aec (diff)
downloadglibc-76a16b8fcb8a61a469648844183fb6c04c39725c.tar.gz
glibc-76a16b8fcb8a61a469648844183fb6c04c39725c.tar.xz
glibc-76a16b8fcb8a61a469648844183fb6c04c39725c.zip
Update.
1999-07-16  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* linuxthreads/internals.h: Align _pthread_descr_struct to 32
	bytes.
	Reported by Tim Hockin <thockin@cobaltnet.com>, close PR
	libc/1206.
Diffstat (limited to 'linuxthreads/internals.h')
-rw-r--r--linuxthreads/internals.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h
index bcbfbcf5eb..032e0863f8 100644
--- a/linuxthreads/internals.h
+++ b/linuxthreads/internals.h
@@ -106,7 +106,12 @@ struct _pthread_descr_struct {
   size_t p_guardsize;		/* size of guard area */
   pthread_descr p_self;		/* Pointer to this structure */
   int p_nr;                     /* Index of descriptor in __pthread_handles */
-};
+} __attribute__ ((aligned(32))); /* We need to align the structure so that
+				    doubles are aligned properly.  This is 8
+				    bytes on MIPS and 16 bytes on MIPS64.
+				    32 bytes might give better cache
+				    utilization.  */
+
 
 /* The type of thread handles. */