Use a non-locking initial test in TAS_SPIN on PPC.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bc2a050d40976441cdb963ad829316c23e8df0aa
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2012-01-03T21:00:06Z
Releases: 9.2.0
Use a non-locking initial test in TAS_SPIN on PPC.

Further testing convinces me that this is helpful at sufficiently high
contention levels, though it's still worrisome that it loses slightly
at lower contention levels.

Per Manabu Ori.

Files

PathChange+/−
src/include/storage/s_lock.h modified +3 −0