diff options
Diffstat (limited to 'linuxthreads/internals.h')
-rw-r--r-- | linuxthreads/internals.h | 7 |
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. */ |