Re: [PATCHES] Reorganization of spinlock defines

From: Manfred Spraul <manfred(at)colorfullife(dot)com>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCHES] Reorganization of spinlock defines
Date: 2003-09-12 21:30:51
Message-ID: 3F623B0B.20105@colorfullife.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Manfred Spraul wrote:

> Is the Itanium tas implementation correct? I think it should be
> xchg4.aqv instead of just xchg4 - as far as I know a normal atomic
> exchange is is not a memory barrier on Itanium. At least the Linux
> kernel version contains "cmpxchg4.aqv".

Sorry for the noise, I'm wrong:
Itanium automatically uses acquire semantics with xchg.
See top of page 16 on
http://h21007.www2.hp.com/dspp/files/unprotected/itanium/spinlocks.pdf

--
Manfred

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Browne 2003-09-12 22:46:17 Re: Another small bug (pg_autovacuum)
Previous Message Carlos Guzman Alvarez 2003-09-12 21:28:09 [ANN] PGSqlClient 1.0 Beta 1 released

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-09-13 00:49:55 Re: Reorganization of spinlock defines
Previous Message Manfred Spraul 2003-09-12 21:14:23 Re: [PATCHES] Reorganization of spinlock defines