Changeset 160140 in webkit


Ignore:
Timestamp:
Dec 4, 2013 4:06:13 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r160116.
http://trac.webkit.org/changeset/160116
https://bugs.webkit.org/show_bug.cgi?id=125264

Change doesn't work as intended. See bug comments for details.
(Requested by bfulgham on #webkit).

  • runtime/InitializeThreading.cpp:

(JSC::initializeThreading):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r160133 r160140  
     12013-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
    1132013-12-04  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/Source/JavaScriptCore/runtime/InitializeThreading.cpp

    r160116 r160140  
    4242#include <wtf/dtoa.h>
    4343#include <wtf/Threading.h>
    44 #include <wtf/ThreadingOnce.h>
    4544#include <wtf/dtoa/cached-powers.h>
    4645
     
    4847
    4948namespace JSC {
     49
     50#if OS(DARWIN)
     51static pthread_once_t initializeThreadingKeyOnce = PTHREAD_ONCE_INIT;
     52#endif
    5053
    5154static void initializeThreadingOnce()
     
    7477void initializeThreading()
    7578{
    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
    7888}
    7989
Note: See TracChangeset for help on using the changeset viewer.