Skip site navigation (1) Skip section navigation (2)

pgsql: Use LWSYNC in place of SYNC/ISYNC in PPC spinlocks,where possib

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use LWSYNC in place of SYNC/ISYNC in PPC spinlocks,where possib
Date: 2012-01-02 05:02:14
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
Use LWSYNC in place of SYNC/ISYNC in PPC spinlocks, where possible.

This is allegedly a win, at least on some PPC implementations, according
to the PPC ISA documents.  However, as with LWARX hints, some PPC
platforms give an illegal-instruction failure.  Use the same trick as
before of assuming that PPC64 platforms will accept it; we might need to
refine that based on experience, but there are other projects doing
likewise according to google.

I did not add an assembler compatibility test because LWSYNC has been
around much longer than hint bits, and it seems unlikely that any
toolchains currently in use don't recognize it.



Modified Files
src/include/pg_config_manual.h |   11 +++++++++++
src/include/storage/s_lock.h   |   19 ++++++++++++++++++-
2 files changed, 29 insertions(+), 1 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2012-01-02 13:49:14
Subject: pgsql: Add comment about skipping binary files for copyright changes.
Previous:From: Bruce MomjianDate: 2012-01-02 03:27:46
Subject: pgsql: Update copyright git skip comment.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group