Ignore:
Timestamp:
Jun 19, 2008, 10:29:29 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Prepare JavaScript heap for being per-thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/InitializeThreading.cpp

    r34412 r34659  
    5050    s_dtoaP5Mutex = new Mutex;
    5151#if !PLATFORM(DARWIN) // Darwin has pthread_main_np(), and doesn't need registerAsMainThread() called.
    52     Collector::registerAsMainThread();
     52    Heap::registerAsMainThread();
    5353#endif
    5454    JSGlobalData::threadInstance();
     
    6262#if PLATFORM(DARWIN)
    6363    pthread_once(&initializeThreadingKeyOnce, initializeThreadingOnce);
     64
     65    // FIXME: do we want heap introspector to work on other threads?
     66    if (pthread_main_np())
     67       JSGlobalData::threadInstance().heap->initializeHeapIntrospector();
    6468#else
    6569    static bool initializedThreading = false;
Note: See TracChangeset for help on using the changeset viewer.