Remove dummy_spinlock

It's been unused since 1b468a131b (2015).
This commit is contained in:
Alvaro Herrera 2024-01-25 11:43:47 +01:00
parent 4d969b2f85
commit 55627ba2d3
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE
3 changed files with 0 additions and 9 deletions

View File

@ -288,12 +288,6 @@ startup_hacks(const char *progname)
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
}
#endif /* WIN32 */
/*
* Initialize dummy_spinlock, in case we are on a platform where we have
* to use the fallback implementation of pg_memory_barrier().
*/
SpinLockInit(&dummy_spinlock);
}

View File

@ -70,8 +70,6 @@ static uint32 local_my_wait_event_info;
uint32 *my_wait_event_info = &local_my_wait_event_info;
#endif
slock_t dummy_spinlock;
static int spins_per_delay = DEFAULT_SPINS_PER_DELAY;

View File

@ -821,7 +821,6 @@ extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or
#define TAS_SPIN(lock) TAS(lock)
#endif /* TAS_SPIN */
extern PGDLLIMPORT slock_t dummy_spinlock;
/*
* Platform-independent out-of-line support routines