]> granicus.if.org Git - postgresql/commit
Use 4-byte slock_t on both PPC and PPC64.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2012 03:44:01 +0000 (22:44 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2012 05:02:01 +0000 (00:02 -0500)
commit8496c6cd77e2f5f105fc47315680174157d66647
treea52fa38595783b1f3f2b0102b5f5b1c3ff54382a
parent5cfa8dd3007d7e953c6a03b0fa2215d97c581b0c
Use 4-byte slock_t on both PPC and PPC64.

Previously we defined slock_t as 8 bytes on PPC64, but the TAS assembly
code uses word-wide operations regardless, so that the second word was
just wasted space.  There doesn't appear to be any performance benefit
in adding the second word, so get rid of it to simplify the code.
src/include/storage/s_lock.h