| Index: third_party/WebKit/Source/wtf/SpinLock.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/SpinLock.cpp b/third_party/WebKit/Source/wtf/SpinLock.cpp
|
| index f958c0fbf956154d00feb0031532a73568fc3f29..0b5586e66cb899ad71f3763bfe623f5754ab2112 100644
|
| --- a/third_party/WebKit/Source/wtf/SpinLock.cpp
|
| +++ b/third_party/WebKit/Source/wtf/SpinLock.cpp
|
| @@ -62,13 +62,13 @@
|
| for (int count = 0; count < kYieldProcessorTries; ++count) {
|
| // Let the Processor know we're spinning.
|
| YIELD_PROCESSOR;
|
| - if (!noBarrierLoad(lock) && LIKELY(!atomicTestAndSetToOne(lock)))
|
| + if (!*lock && LIKELY(!atomicTestAndSetToOne(lock)))
|
| return;
|
| }
|
|
|
| // Give the OS a chance to schedule something on this core.
|
| YIELD_THREAD;
|
| - } while (noBarrierLoad(lock));
|
| + } while (*lock);
|
| } while (UNLIKELY(atomicTestAndSetToOne(lock)));
|
| }
|
|
|
|
|