Re: Outdated comments about proc->sem in lwlock.c
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-06-03T02:07:02Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-more-obsolete-comments-about-semaphores.patch (text/x-patch) patch 0001
On Wed, Mar 10, 2021 at 1:11 AM Thomas Munro <thomas.munro@gmail.com> wrote: > In passing I noticed that lwlock.c contains 3 comments about bogus > wakeups due to sharing proc->sem with the heavyweight lock manager and > ProcWaitForSignal. Commit 6753333f55e (9.5) switched those things > from proc->sem to proc->procLatch. ProcArrayGroupClearXid() and > TransactionGroupUpdateXidStatus() also use proc->sem though, and I > haven't studied how those might overlap with with LWLockWait(), so I'm > not sure what change to suggest. Here's a patch to remove the misleading comments.
Commits
-
Remove more obsolete comments about semaphores.
- 996e69c1addc 9.6.23 landed
- a692a2a183e1 10.18 landed
- 7e03e3f32b54 11.13 landed
- c0385c6a7e13 12.8 landed
- 7dd2379df709 13.4 landed
- 8d48a3436dd8 14.0 landed
- 2f783380641d 15.0 landed
-
Move deadlock and other interrupt handling in proc.c out of signal handlers.
- 6753333f55e1 9.5.0 cited