Ignore:
Timestamp:
Aug 19, 2015, 7:34:02 PM (10 years ago)
Author:
[email protected]
Message:

Remove WTF::SpinLock
https://bugs.webkit.org/show_bug.cgi?id=148208

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

Remove the one remaining use of SpinLock.

  • API/JSValue.mm:

(handerForStructTag):

Source/WTF:

Remove the SpinLock.h file and remove references to the SpinLock class. Put the old SpinLock
algorithm in LockSpeedTest.cpp - which isn't compiled as part of a WTF or WebKit build - just
so we can still benchmark our locking algorithms against a spinlock baseline.

  • WTF.vcxproj/WTF.vcxproj:
  • WTF.xcodeproj/project.pbxproj:
  • benchmarks/LockSpeedTest.cpp:
  • wtf/CMakeLists.txt:
  • wtf/Lock.h:
  • wtf/SpinLock.h: Removed.
  • wtf/WordLock.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSValue.mm

    r185259 r188677  
    4242#import <wtf/HashMap.h>
    4343#import <wtf/HashSet.h>
     44#import <wtf/Lock.h>
    4445#import <wtf/ObjcRuntimeExtras.h>
    45 #import <wtf/SpinLock.h>
    4646#import <wtf/Vector.h>
    4747#import <wtf/text/WTFString.h>
     
    11151115static StructTagHandler* handerForStructTag(const char* encodedType)
    11161116{
    1117     static StaticSpinLock handerForStructTagLock;
    1118     SpinLockHolder lockHolder(&handerForStructTagLock);
     1117    static StaticLock handerForStructTagLock;
     1118    LockHolder lockHolder(&handerForStructTagLock);
    11191119
    11201120    static StructHandlers* structHandlers = createStructHandlerMap();
Note: See TracChangeset for help on using the changeset viewer.