git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e256266) | patch
Remove --disable-atomics, require 32 bit atomics.
2024年7月30日 09:52:46 +0000 (21:52 +1200)
2024年7月30日 10:58:57 +0000 (22:58 +1200)
commit 81385261362962deb9861b39b509aeffe213721d
Remove --disable-atomics, require 32 bit atomics.

Modern versions of all relevant architectures and tool chains have
atomics support. Since edadeb07, there is no remaining reason to carry
code that simulates atomic flags and uint32 imperfectly with spinlocks.
64 bit atomics are still emulated with spinlocks, if needed, for now.

Any modern compiler capable of implementing C11 <stdatomic.h> must have
the underlying operations we need, though we don't require C11 yet. We
detect certain compilers and architectures, so hypothetical new systems
might need adjustments here.

Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> (concept, not the patch)
Reviewed-by: Andres Freund <andres@anarazel.de> (concept, not the patch)
Discussion: https://postgr.es/m/3351991.1697728588%40sss.pgh.pa.us
12 files changed:
configure diff | blob | blame | history
configure.ac diff | blob | blame | history
doc/src/sgml/installation.sgml diff | blob | blame | history
meson.build diff | blob | blame | history
src/backend/port/atomics.c diff | blob | blame | history
src/include/pg_config.h.in diff | blob | blame | history
src/include/port/atomics.h diff | blob | blame | history
src/include/port/atomics/arch-x86.h diff | blob | blame | history
src/include/port/atomics/fallback.h diff | blob | blame | history
src/include/port/atomics/generic-gcc.h diff | blob | blame | history
src/include/port/atomics/generic-msvc.h diff | blob | blame | history
src/include/port/atomics/generic-sunpro.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /