]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Align _pthread_descr_struct to 32 bytes.
authorUlrich Drepper <drepper@redhat.com>
Fri, 16 Jul 1999 23:18:26 +0000 (23:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 16 Jul 1999 23:18:26 +0000 (23:18 +0000)
linuxthreads/internals.h

index 070150fa5ddbc5d4749d9348e14c256106b8ede2..9be61b078c7673e913ac63e03e2965788e1ad1a8 100644 (file)
@@ -106,7 +106,11 @@ 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. */