Permalink
Browse files

Removed PAUSE (see https://aloiskraus.wordpress.com/2018/06/16/why-sk…

  • Loading branch information...
emeryberger committed Aug 16, 2018
1 parent ac94902 commit c2dfb3f3010c21479085e7467f508d88fb9da157
Showing with 9 additions and 0 deletions.
  1. +9 −0 locks/spinlock.h
View
@@ -65,6 +65,13 @@
#endif
#define _MM_PAUSE
// The use of the PAUSE instruction has now been disabled, as it can be insanely costly.
// See https://aloiskraus.wordpress.com/2018/06/16/why-skylakex-cpus-are-sometimes-50-slower-how-intel-has-broken-existing-code/amp
/*
#if defined(_WIN32) // includes WIN64
// NOTE: Below is the new "pause" instruction, which is inocuous for
@@ -86,6 +93,8 @@
#endif
*/
namespace HL {
class SpinLockType {

0 comments on commit c2dfb3f

Please sign in to comment.