aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-01-01 22:39:59 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2012-01-02 00:02:00 -0500
commit5cfa8dd3007d7e953c6a03b0fa2215d97c581b0c (patch)
tree39ee2902ec30be8467b91a25f3f02c7a89f70507 /src/backend/executor
parent6b6137e4efebcd767a349099b3e048fbc7755cca (diff)
downloadpostgresql-5cfa8dd3007d7e953c6a03b0fa2215d97c581b0c.tar.gz
postgresql-5cfa8dd3007d7e953c6a03b0fa2215d97c581b0c.zip
Use mutex hint bit in PPC LWARX instructions, where possible.
The hint bit makes for a small but measurable performance improvement in access to contended spinlocks. On the other hand, some PPC chips give an illegal-instruction failure. There doesn't seem to be a completely bulletproof way to tell whether the hint bit will cause an illegal-instruction failure other than by trying it; but most if not all 64-bit PPC machines should accept it, so follow the Linux kernel's lead and assume it's okay to use it in 64-bit builds. Of course we must also check whether the assembler accepts the command, since even with a recent CPU the toolchain could be old. Patch by Manabu Ori, significantly modified by me.
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions