From: Ulrich Drepper Date: Fri, 16 Jul 1999 23:18:26 +0000 (+0000) Subject: Align _pthread_descr_struct to 32 bytes. X-Git-Tag: cvs/glibc_2-1-2~265 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d31cea226a1ea6d5a409f03dde494a6b08fe406;p=thirdparty%2Fglibc.git Align _pthread_descr_struct to 32 bytes. --- diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 070150fa5dd..9be61b078c7 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -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. */