On Thu, Aug 1, 2024 at 7:07 AM Andres Freund <andres@anarazel.de> wrote:
> Note that I would like to add a user for S_LOCK_FREE(), to detect repeated
> SpinLockRelease():
> https://postgr.es/m/20240729182952.hua325647e2ggbsy%40awork3.anarazel.de
What about adding a "magic" member in assertion builds? Here is my
attempt at that, in 0002.
I also realised that we might as well skip the trivial S_XXX macros
and delete s_lock.h. In this version of 0001 we retain just spin.h,
but s_lock.c still exists to hold the slow path.