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/ThreadingPthreads.cpp

    r91444 r91906  
    3434
    3535#include "CurrentTime.h"
     36#include "DateMath.h"
     37#include "dtoa.h"
    3638#include "HashMap.h"
    3739#include "MainThread.h"
     
    4143#include "ThreadSpecific.h"
    4244#include "UnusedParam.h"
     45#include <wtf/WTFThreadData.h>
    4346#include <errno.h>
    4447
     
    7982        return;
    8083
     84    // StringImpl::empty() does not construct its static string in a threadsafe fashion,
     85    // so ensure it has been initialized from here.
     86    StringImpl::empty();
    8187    atomicallyInitializedStaticMutex = new Mutex;
    8288    threadMapMutex();
    8389    initializeRandomNumberGenerator();
     90    wtfThreadData();
     91#if ENABLE(WTF_MULTIPLE_THREADS)
     92    s_dtoaP5Mutex = new Mutex;
     93    initializeDates();
     94#endif
    8495}
    8596
Note: See TracChangeset for help on using the changeset viewer.