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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 194e98b3
2013-12-04 Commit Queue <commit-queue@webkit.org>
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):
2013-12-04 Oliver Hunt <oliver@apple.com>
Refactor static getter function prototype to include thisValue in addition to the base object
......
......@@ -41,13 +41,16 @@
#include "WriteBarrier.h"
#include <wtf/dtoa.h>
#include <wtf/Threading.h>
#include <wtf/ThreadingOnce.h>
#include <wtf/dtoa/cached-powers.h>
using namespace WTF;
namespace JSC {
#if OS(DARWIN)
static pthread_once_t initializeThreadingKeyOnce = PTHREAD_ONCE_INIT;
#endif
static void initializeThreadingOnce()
{
WTF::double_conversion::initialize();
......@@ -73,8 +76,15 @@ static void initializeThreadingOnce()
void initializeThreading()
{
static WTF::ThreadingOnce initializeThreadingKeyOnce;
initializeThreadingKeyOnce.callOnce(initializeThreadingOnce);
#if OS(DARWIN)
pthread_once(&initializeThreadingKeyOnce, initializeThreadingOnce);
#else
static bool initializedThreading = false;
if (!initializedThreading) {
initializeThreadingOnce();
initializedThreading = true;
}
#endif
}
} // namespace JSC
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment