Changeset 205767 in webkit


Ignore:
Timestamp:
Sep 9, 2016 2:20:02 PM (8 years ago)
Author:
fpizlo@apple.com
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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r205753 r205767  
     12016-09-09  Filip Pizlo  <fpizlo@apple.com>
     2
     3        jsc.cpp should call initializeMainThread() to make sure that GC thread assertions work
     4        https://bugs.webkit.org/show_bug.cgi?id=161801
     5
     6        Reviewed by Keith Miller.
     7       
     8        The GC has debug assertions that certain things don't happen on GC threads. Those assertions
     9        are no-ops unless initializeGCThreads() is called, and I think the most canonical way to do
     10        that is to call initializeMainThread().
     11
     12        * jsc.cpp:
     13        (jscmain):
     14
    1152016-09-09  Saam Barati  <sbarati@apple.com>
    216
  • 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.