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

Commitce92f8b

Browse files
committed
Use _mm_pause() for win64 spin_delay(), per note from Tsutomu Yamada.
1 parent5219f80 commitce92f8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/include/storage/s_lock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
6767
* Portions Copyright (c) 1994, Regents of the University of California
6868
*
69-
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.170 2010/01/04 17:10:24 mha Exp $
69+
* $PostgreSQL: pgsql/src/include/storage/s_lock.h,v 1.171 2010/01/05 11:06:28 mha Exp $
7070
*
7171
*-------------------------------------------------------------------------
7272
*/
@@ -837,13 +837,13 @@ typedef LONG slock_t;
837837
#defineSPIN_DELAY() spin_delay()
838838

839839
/* If using Visual C++ on Win64, inline assembly is unavailable.
840-
* Use a__nop instrinsic instead of rep nop.
840+
* Use a_mm_pause instrinsic instead of rep nop.
841841
*/
842842
#if defined(_WIN64)
843843
static __forceinlinevoid
844844
spin_delay(void)
845845
{
846-
__nop();
846+
_mm_pause();
847847
}
848848
#else
849849
static __forceinlinevoid

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp