diff options
author | Thomas Munro <tmunro@postgresql.org> | 2024-07-30 21:45:01 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2024-07-30 22:58:37 +1200 |
commit | e25626677f8076eb3ce94586136c5464ee154381 (patch) | |
tree | f03f87af97b998e2dd5aadcfe8a93a83a1ae716b /src/include/pg_config_manual.h | |
parent | 1330843bb78e9d2422af2f2b9909b80732bd6fc0 (diff) |
Remove --disable-spinlocks.
A later change will require atomic support, so it wouldn't make sense
for a hypothetical new system not to be able to implement spinlocks.
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
Diffstat (limited to 'src/include/pg_config_manual.h')
-rw-r--r-- | src/include/pg_config_manual.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index f941ee2faf8..11f74f4b56d 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -86,21 +86,6 @@ #define USE_FLOAT8_BYVAL 1 #endif -/* - * When we don't have native spinlocks, we use semaphores to simulate them. - * Decreasing this value reduces consumption of OS resources; increasing it - * may improve performance, but supplying a real spinlock implementation is - * probably far better. - */ -#define NUM_SPINLOCK_SEMAPHORES 128 - -/* - * When we have neither spinlocks nor atomic operations support we're - * implementing atomic operations on top of spinlock on top of semaphores. To - * be safe against atomic operations while holding a spinlock separate - * semaphores have to be used. - */ -#define NUM_ATOMICS_SEMAPHORES 64 /* * MAXPGPATH: standard size of a pathname buffer in PostgreSQL (hence, |