Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55627ba

Browse files
committed
Remove dummy_spinlock
It's been unused since1b468a1 (2015).
1 parent4d969b2 commit55627ba

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_tdummy_spinlock;
74-
7573
staticintspins_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 inttas(volatile slock_t *lock);/* in port/.../tas.s, or
821821
#defineTAS_SPIN(lock)TAS(lock)
822822
#endif/* TAS_SPIN */
823823

824-
externPGDLLIMPORTslock_tdummy_spinlock;
825824

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp