Ignore:
Timestamp:
Feb 24, 2015, 4:03:42 PM (10 years ago)
Author:
[email protected]
Message:

Rolling out r179753. The fix was invalid.
<https://webkit.org/b/141990>

Not reviewed.

  • API/tests/testapi.mm:

(threadMain):
(useVMFromOtherThread): Deleted.
(useVMFromOtherThreadAndOutliveVM): Deleted.

  • heap/Heap.cpp:

(JSC::Heap::Heap):
(JSC::Heap::~Heap):
(JSC::Heap::gatherStackRoots):

  • heap/Heap.h:

(JSC::Heap::machineThreads):

  • heap/MachineStackMarker.cpp:

(JSC::MachineThreads::Thread::Thread):
(JSC::MachineThreads::MachineThreads):
(JSC::MachineThreads::~MachineThreads):
(JSC::MachineThreads::addCurrentThread):
(JSC::MachineThreads::removeThread):
(JSC::MachineThreads::removeCurrentThread):

  • heap/MachineStackMarker.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/Heap.cpp

    r179753 r180591  
    312312    , m_storageSpace(this)
    313313    , m_extraMemoryUsage(0)
     314    , m_machineThreads(this)
    314315    , m_sharedData(vm)
    315316    , m_slotVisitor(m_sharedData)
     
    340341#endif
    341342{
    342     m_machineThreads = adoptRef(new MachineThreads(this));
    343343    m_storageSpace.init();
    344344    if (Options::verifyHeap())
     
    348348Heap::~Heap()
    349349{
    350     // We need to remove the main thread explicitly here because the main thread
    351     // may not terminate for a while though the Heap (and VM) is being shut down.
    352     m_machineThreads->removeCurrentThread();
    353350}
    354351
     
    591588    GCPHASE(GatherStackRoots);
    592589    m_jitStubRoutines.clearMarks();
    593     m_machineThreads->gatherConservativeRoots(roots, m_jitStubRoutines, m_codeBlocks, dummy, registers);
     590    m_machineThreads.gatherConservativeRoots(roots, m_jitStubRoutines, m_codeBlocks, dummy, registers);
    594591}
    595592
Note: See TracChangeset for help on using the changeset viewer.