[drow@false.org: Re: DB_THREAD support in Berkeley DB/glibc]

Geoff Keating geoffk@cygnus.com
Wed Dec 29 12:27:00 GMT 1999


> 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>


More information about the Libc-alpha mailing list