Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ulrich Drepper committed Jul 16, 1999
1 parent 9c6f68c commit 76a16b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
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.

1999-07-09 Ulrich Drepper <drepper@cygnus.com>

* oldsemaphore.c (sem_compare_and_swap): Fix use of compare and
Expand Down
7 changes: 6 additions & 1 deletion linuxthreads/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */

Expand Down

0 comments on commit 76a16b8

Please sign in to comment.