Ignore:
Timestamp:
Jul 27, 2011, 10:16:23 PM (14 years ago)
Author:
[email protected]
Message:

[chromium] Turn on WTF_MULTIPLE_THREADS.
https://bugs.webkit.org/show_bug.cgi?id=61017
The patch turns on WTF_MULTIPLE_THREADS in chromium and
pushes some relevant initializations from JSC::initializeThreading
to WTF::initializeThreading.

Reviewed by David Levin.

  • runtime/InitializeThreading.cpp:

(JSC::initializeThreadingOnce):

  • wtf/FastMalloc.cpp:

(WTF::isForbidden):
(WTF::fastMallocForbid):
(WTF::fastMallocAllow):

  • wtf/Platform.h:
  • wtf/ThreadingPthreads.cpp:

(WTF::initializeThreading):

  • wtf/ThreadingWin.cpp:

(WTF::initializeThreading):

  • wtf/gtk/ThreadingGtk.cpp:

(WTF::initializeThreading):

  • wtf/qt/ThreadingQt.cpp:

(WTF::initializeThreading):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/wtf/ThreadingWin.cpp

    r91383 r91906  
    8686#include "config.h"
    8787#include "Threading.h"
     88#include "DateMath.h"
     89#include "dtoa.h"
    8890
    8991#include "MainThread.h"
     
    9698#include <wtf/PassOwnPtr.h>
    9799#include <wtf/RandomNumberSeed.h>
     100#include <wtf/WTFThreadData.h>
    98101
    99102#if !USE(PTHREADS) && OS(WINDOWS)
     
    161164        return;
    162165
     166    // StringImpl::empty() does not construct its static string in a threadsafe fashion,
     167    // so ensure it has been initialized from here.
     168    StringImpl::empty();
    163169    atomicallyInitializedStaticMutex = new Mutex;
    164170    threadMapMutex();
    165171    initializeRandomNumberGenerator();
     172    wtfThreadData();
     173#if ENABLE(WTF_MULTIPLE_THREADS)
     174    s_dtoaP5Mutex = new Mutex;
     175    initializeDates();
     176#endif
     177
    166178}
    167179
Note: See TracChangeset for help on using the changeset viewer.