pgsql: Use a non-locking test in TAS_SPIN() on all IA64 platforms.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use a non-locking test in TAS_SPIN() on all IA64 platforms.
Date: 2011-08-29 17:18:53
Message-ID: E1Qy5U5-0007G3-5q@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use a non-locking test in TAS_SPIN() on all IA64 platforms.

Per my testing, this works just as well with gcc as it does with HP's
compiler; and there is no reason to think that the effect doesn't occur
with icc, either.

Also, rewrite the header comment about enforcing sequencing around spinlock
operations, per Robert's gripe that it was misleading.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/be1e8053f48f76ac718a03d6526e34e2f2489f5c

Modified Files
--------------
src/include/storage/s_lock.h | 28 ++++++++++++++++++++++------
1 files changed, 22 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-08-29 19:21:51 pgsql: Fix concat_ws() to not insert a separator after leading NULL arg
Previous Message Robert Haas 2011-08-29 14:11:57 pgsql: Improve spinlock performance for HP-UX, ia64, non-gcc.