This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: [drow@false.org: Re: DB_THREAD support in Berkeley DB/glibc]
> Date: Tue, 28 Dec 1999 21:26:43 -0500
> From: Daniel Jacobowitz <drow@false.org>
> > You need MUTEX_ALIGNMENT=32 for powerpc.
>
> Why? Will lwarx not work on things only word-aligned?
It will work, but there is a problem if you get two mutexes in the
same cache line. Reservations are cache-line-based, and it's possible
to get livelock.
--
- Geoffrey Keating <geoffk@cygnus.com>