From: Magnus Hagander Date: Tue, 5 Jan 2010 11:06:28 +0000 (+0000) Subject: Use _mm_pause() for win64 spin_delay(), per note from Tsutomu Yamada. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=7746ca1365717a38453cbca02dbf3a7be1658e71;p=users%2Fandresfreund%2Fpostgres.git Use _mm_pause() for win64 spin_delay(), per note from Tsutomu Yamada. --- diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index ac2ba6e96c..aede32dd16 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -837,13 +837,13 @@ typedef LONG slock_t; #define SPIN_DELAY() spin_delay() /* If using Visual C++ on Win64, inline assembly is unavailable. - * Use a __nop instrinsic instead of rep nop. + * Use a _mm_pause instrinsic instead of rep nop. */ #if defined(_WIN64) static __forceinline void spin_delay(void) { - __nop(); + _mm_pause(); } #else static __forceinline void