aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-09-09 00:47:32 +0200
committerAndres Freund <andres@anarazel.de>2014-09-09 00:47:32 +0200
commit07968dbfaad03001db632a5c0ce4acccd5e463e2 (patch)
tree052fd37d2a2c6081a2b6dbe64c5e97bee494bdd7 /src/backend/utils/adt/xml.c
parent750c5ee6ce4410faaa4bf2b8d861100f30d97c73 (diff)
downloadpostgresql-07968dbfaad03001db632a5c0ce4acccd5e463e2.tar.gz
postgresql-07968dbfaad03001db632a5c0ce4acccd5e463e2.zip
Fix spinlock implementation for some !solaris sparc platforms.
Some Sparc CPUs can be run in various coherence models, ranging from RMO (relaxed) over PSO (partial) to TSO (total). Solaris has always run CPUs in TSO mode while in userland, but linux didn't use to and the various *BSDs still don't. Unfortunately the sparc TAS/S_UNLOCK were only correct under TSO. Fix that by adding the necessary memory barrier instructions. On sparcv8+, which should be all relevant CPUs, these are treated as NOPs if the current consistency model doesn't require the barriers. Discussion: 20140630222854.GW26930@awork2.anarazel.de Will be backpatched to all released branches once a few buildfarm cycles haven't shown up problems. As I've no access to sparc, this is blindly written.
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions