From 195f1642285d59b4bd42ec2ba8bbcf46b8aedd93 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 29 Dec 2005 18:08:05 +0000 Subject: Get rid of the SpinLockAcquire/SpinLockAcquire_NoHoldoff distinction in favor of having just one set of macros that don't do HOLD/RESUME_INTERRUPTS (hence, these correspond to the old SpinLockAcquire_NoHoldoff case). Given our coding rules for spinlock use, there is no reason to allow CHECK_FOR_INTERRUPTS to be done while holding a spinlock, and also there is no situation where ImmediateInterruptOK will be true while holding a spinlock. Therefore doing HOLD/RESUME_INTERRUPTS while taking/releasing a spinlock is just a waste of cycles. Qingqing Zhou and Tom Lane. --- src/backend/storage/ipc/shmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/storage/ipc') diff --git a/src/backend/storage/ipc/shmem.c b/src/backend/storage/ipc/shmem.c index 01b578c635a..e6865563b39 100644 --- a/src/backend/storage/ipc/shmem.c +++ b/src/backend/storage/ipc/shmem.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/ipc/shmem.c,v 1.88 2005/11/22 18:17:20 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/storage/ipc/shmem.c,v 1.89 2005/12/29 18:08:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -58,6 +58,7 @@ #include "postgres.h" #include "access/transam.h" +#include "miscadmin.h" #include "storage/pg_shmem.h" #include "storage/spin.h" #include "utils/tqual.h" -- cgit v1.2.3