]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add comment to explain why PGReserveSemaphores() is called early
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 6 Nov 2025 10:50:10 +0000 (12:50 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 6 Nov 2025 12:20:58 +0000 (14:20 +0200)
commit75ec47c38bcf8777164cf91885eb907eb3fc369b
treed8f2ab54db4dab0f982c7bba135b2eab72970232
parent83122538f2f0354970cd5209a90abc677f32384e
Add comment to explain why PGReserveSemaphores() is called early

Before commit e25626677f, PGReserveSemaphores() had to be called
before SpinlockSemaInit() because spinlocks were implemented using
semaphores on some platforms (--disable-spinlocks). Add a comment
explaining that.

Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAExHW5seSZpPx-znjidVZNzdagGHOk06F+Ds88MpPUbxd1kTaA@mail.gmail.com
Backpatch-to: 18
src/backend/storage/ipc/ipci.c