Ignore:
Timestamp:
Sep 9, 2016, 2:20:02 PM (9 years ago)
Author:
[email protected]
Message:

jsc.cpp should call initializeMainThread() to make sure that GC thread assertions work
https://bugs.webkit.org/show_bug.cgi?id=161801

Reviewed by Keith Miller.

The GC has debug assertions that certain things don't happen on GC threads. Those assertions
are no-ops unless initializeGCThreads() is called, and I think the most canonical way to do
that is to call initializeMainThread().

  • jsc.cpp:

(jscmain):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r205670 r205767  
    25602560
    25612561    // Initialize JSC before getting VM.
    2562 #if ENABLE(SAMPLING_REGIONS)
    25632562    WTF::initializeMainThread();
    2564 #endif
    25652563    JSC::initializeThreading();
    25662564
Note: See TracChangeset for help on using the changeset viewer.