Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 55627ba

Browse files
committed
Remove dummy_spinlock
It's been unused since 1b468a1 (2015).
1 parent 4d969b2 commit 55627ba

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/backend/main/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,6 @@ startup_hacks(const char *progname)
288288
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
289289
}
290290
#endif /* WIN32 */
291-
292-
/*
293-
* Initialize dummy_spinlock, in case we are on a platform where we have
294-
* to use the fallback implementation of pg_memory_barrier().
295-
*/
296-
SpinLockInit(&dummy_spinlock);
297291
}
298292

299293

src/backend/storage/lmgr/s_lock.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ static uint32 local_my_wait_event_info;
7070
uint32 *my_wait_event_info = &local_my_wait_event_info;
7171
#endif
7272

73-
slock_t dummy_spinlock;
74-
7573
static int spins_per_delay = DEFAULT_SPINS_PER_DELAY;
7674

7775

src/include/storage/s_lock.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,6 @@ extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or
821821
#define TAS_SPIN(lock) TAS(lock)
822822
#endif /* TAS_SPIN */
823823

824-
extern PGDLLIMPORT slock_t dummy_spinlock;
825824

826825
/*
827826
* Platform-independent out-of-line support routines

0 commit comments

Comments
 (0)