postgresql/src
Tom Lane c32fcac56a Add RISC-V spinlock support in s_lock.h.
Like the ARM case, just use gcc's __sync_lock_test_and_set();
that will compile into AMOSWAP.W.AQ which does what we need.

At some point it might be worth doing some work on atomic ops
for RISC-V, but this should be enough for a creditable port.

Back-patch to all supported branches, just in case somebody
wants to try them on RISC-V.

Marek Szuba

Discussion: https://postgr.es/m/dea97b6d-f55f-1f6d-9109-504aa7dfa421@gentoo.org
2021-08-13 13:59:43 -04:00
..
backend Remove support for background workers without BGWORKER_SHMEM_ACCESS. 2021-08-13 05:49:26 -07:00
bin pg_amcheck: Message style and structuring improvements 2021-08-13 17:30:39 +02:00
common Simplify error handing of jsonapi.c for the frontend 2021-07-02 09:35:12 +09:00
fe_utils Skip trailing whitespaces when parsing integer options 2021-07-27 10:39:05 +09:00
include Add RISC-V spinlock support in s_lock.h. 2021-08-13 13:59:43 -04:00
interfaces Fix connection handling for DEALLOCATE and DESCRIBE statements 2021-08-13 10:45:08 +02:00
makefiles Add NO_INSTALL option to pgxs 2021-05-27 13:58:29 +02:00
pl Fix corner-case uninitialized-variable issues in plpgsql. 2021-07-20 13:01:48 -04:00
port Add POPCNT support for MSVC x86_64 builds 2021-08-09 15:23:48 +12:00
template Further tweaking of PG_SYSROOT heuristics for macOS. 2021-01-20 12:07:23 -05:00
test Remove unused regression test certificate server-ss 2021-08-10 11:15:02 +02:00
timezone Update time zone data files to tzdata release 2021a. 2021-01-24 16:29:47 -05:00
tools Speed up generation of Unicode hash functions. 2021-08-12 09:08:56 -04:00
tutorial doc: Prefer explicit JOIN syntax over old implicit syntax in tutorial 2021-04-08 10:51:26 +02:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Fix prove_installcheck to use correct paths when used with PGXS 2021-07-01 09:02:46 -04:00
Makefile.shlib
nls-global.mk Add errhint_plural() function and make use of it 2021-03-31 09:16:25 +02:00