OSDN Git Service

Clean up spinlock assembly code slightly (just cosmetic improvements)
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 30 Dec 2000 02:34:56 +0000 (02:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 30 Dec 2000 02:34:56 +0000 (02:34 +0000)
commitf83b2215987b474472c3115f91bff745bfa7de28
tree7f6de3bddbda369880eca3121524168c15c5525c
parentc23851bbe060983cb688afbd9708602fc70fd1d0
Clean up spinlock assembly code slightly (just cosmetic improvements)
for Alpha gcc case.  For Alpha non-gcc case, replace use of
__INTERLOCKED_TESTBITSS_QUAD builtin with __LOCK_LONG_RETRY and
__UNLOCK_LONG.  The former does not execute an MB instruction and
therefore was guaranteed not to work on multiprocessor machines.
The LOCK_LONG builtins produce code that is the same in all essential
details as the gcc assembler code.
src/include/storage/s_lock.h