From 76a16b8fcb8a61a469648844183fb6c04c39725c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 Jul 1999 23:16:52 +0000 Subject: Update. 1999-07-16 Andreas Jaeger * linuxthreads/internals.h: Align _pthread_descr_struct to 32 bytes. Reported by Tim Hockin , close PR libc/1206. --- linuxthreads/ChangeLog | 7 +++++++ linuxthreads/internals.h | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 8432d2d..48a46c8 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,10 @@ +1999-07-16 Andreas Jaeger + + * linuxthreads/internals.h: Align _pthread_descr_struct to 32 + bytes. + Reported by Tim Hockin , close PR + libc/1206. + 1999-07-09 Ulrich Drepper * oldsemaphore.c (sem_compare_and_swap): Fix use of compare and diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index bcbfbcf..032e086 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. */ -- cgit v1.1