Ignore:
Timestamp:
May 11, 2012, 10:57:17 AM (13 years ago)
Author:
[email protected]
Message:

Fix crash seen when running with libgmalloc
<rdar://problem/11435411>
https://bugs.webkit.org/show_bug.cgi?id=86232

Reviewed by Gavin Barraclough.

  • heap/MarkStack.cpp:

(JSC::MarkStackThreadSharedData::markingThreadMain):
Don't delete the SlotVisitor before the ParallelModeEnabler has had a chance to run its
destructor.

File:
1 edited

Legend:

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

    r116659 r116785  
    229229{
    230230    WTF::registerGCThread();
    231     ParallelModeEnabler enabler(*slotVisitor);
    232     slotVisitor->drainFromShared(SlotVisitor::SlaveDrain);
     231    {
     232        ParallelModeEnabler enabler(*slotVisitor);
     233        slotVisitor->drainFromShared(SlotVisitor::SlaveDrain);
     234    }
    233235    delete slotVisitor;
    234236}
Note: See TracChangeset for help on using the changeset viewer.