Changeset 160140 in webkit
- Timestamp:
- Dec 4, 2013 4:06:13 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r160133 r160140 1 2013-12-04 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r160116. 4 http://trac.webkit.org/changeset/160116 5 https://bugs.webkit.org/show_bug.cgi?id=125264 6 7 Change doesn't work as intended. See bug comments for details. 8 (Requested by bfulgham on #webkit). 9 10 * runtime/InitializeThreading.cpp: 11 (JSC::initializeThreading): 12 1 13 2013-12-04 Oliver Hunt <oliver@apple.com> 2 14 -
trunk/Source/JavaScriptCore/runtime/InitializeThreading.cpp
r160116 r160140 42 42 #include <wtf/dtoa.h> 43 43 #include <wtf/Threading.h> 44 #include <wtf/ThreadingOnce.h>45 44 #include <wtf/dtoa/cached-powers.h> 46 45 … … 48 47 49 48 namespace JSC { 49 50 #if OS(DARWIN) 51 static pthread_once_t initializeThreadingKeyOnce = PTHREAD_ONCE_INIT; 52 #endif 50 53 51 54 static void initializeThreadingOnce() … … 74 77 void initializeThreading() 75 78 { 76 static WTF::ThreadingOnce initializeThreadingKeyOnce; 77 initializeThreadingKeyOnce.callOnce(initializeThreadingOnce); 79 #if OS(DARWIN) 80 pthread_once(&initializeThreadingKeyOnce, initializeThreadingOnce); 81 #else 82 static bool initializedThreading = false; 83 if (!initializedThreading) { 84 initializeThreadingOnce(); 85 initializedThreading = true; 86 } 87 #endif 78 88 } 79 89
Note: See TracChangeset
for help on using the changeset viewer.