On Wed, 2016-09-21 at 16:56 +0200, Florian Weimer wrote:
> Torvald, would it be possible to align mutexes internally on hppa, to
> avoid the 16-byte alignment of the entire struct (that is, store a
> pointer to the actual mutex object, which points to a sub-region of
> the struct which is suitably aligned)?

I think this should be possible.  The int used for the actual lock is
first in the structure, followed by two more int's that we could move to
the end of the structure (which is just padding currently).  That would
allow us to shift the lock member by 8 bytes on demand at runtime.

Reply via email to