For all ppc compilers, implement compare_exchange and fetch_add with asm.
Noah Misch <noah@leadboat.com>
For all ppc compilers, implement compare_exchange and fetch_add with asm. This is more like how we handle s_lock.h and arch-x86.h. Reviewed by Tom Lane. Discussion: https://postgr.es/m/20191005173400.GA3979129@rfd.leadboat.com
Files
| Path | Change | +/− |
|---|---|---|
| configure | modified | +40 −0 |
| configure.in | modified | +20 −0 |
| src/include/pg_config.h.in | modified | +3 −0 |
| src/include/port/atomics/arch-ppc.h | modified | +231 −0 |
| src/include/port/atomics/generic-xlc.h | deleted | +0 −142 |
| src/include/port/atomics.h | modified | +4 −7 |
| src/tools/pginclude/cpluspluscheck | modified | +0 −1 |
| src/tools/pginclude/headerscheck | modified | +0 −1 |
Discussion
- Deadlock in XLogInsert at AIX 51 messages · 2017-01-24 → 2019-10-13