Remove SpinLockFree() and S_LOCK_FREE().
Nathan Bossart <nathan@postgresql.org>
Remove SpinLockFree() and S_LOCK_FREE(). S_LOCK_FREE() is used by the test program in s_lock.c, but nobody has voiced concerns about losing some coverage there. SpinLockFree() appears to have been unused since it was introduced by commit 499abb0c0f. There was agreement to remove these in 2020, but it never happened. Since we still have agreement for removal in 2026, let's do that now. Reviewed-by: Fabrízio de Royes Mello <fabriziomello@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/aZX2oUcKf7IzHnnK%40nathan Discussion: https://postgr.es/m/20200608225338.m5zho424w6lpwb2d%40alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/lmgr/s_lock.c | modified | +0 −24 |
| src/include/storage/s_lock.h | modified | +0 −8 |
| src/include/storage/spin.h | modified | +0 −6 |
Discussion
- Remove SpinLockFree() / S_LOCK_FREE()? 2 messages · 2020-06-08
- convert SpinLock* macros to static inline functions 7 messages · 2026-02-18 → 2026-02-23