Ignore:
Timestamp:
Jan 10, 2018, 11:41:12 AM (8 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r226667 and r226673.
https://bugs.webkit.org/show_bug.cgi?id=181488

This caused a flaky crash. (Requested by mlewis13 on #webkit).

Reverted changesets:

"CodeBlocks should be in IsoSubspaces"
https://bugs.webkit.org/show_bug.cgi?id=180884
https://trac.webkit.org/changeset/226667

"REGRESSION (r226667): CodeBlocks should be in IsoSubspaces"
https://bugs.webkit.org/show_bug.cgi?id=180884
https://trac.webkit.org/changeset/226673

File:
1 edited

Legend:

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

    r226667 r226725  
    7373    HeapUtil::findGCObjectPointersForMarking(
    7474        m_heap, markingVersion, newlyAllocatedVersion, filter, p,
    75         [&] (void* p, HeapCell::Kind cellKind) {
    76             if (cellKind == HeapCell::JSCell)
    77                 markHook.markKnownJSCell(static_cast<JSCell*>(p));
    78            
     75        [&] (void* p) {
    7976            if (m_size == m_capacity)
    8077                grow();
     
    107104public:
    108105    void mark(void*) { }
    109     void markKnownJSCell(JSCell*) { }
    110106};
    111107
     
    114110    DummyMarkHook dummy;
    115111    genericAddSpan(begin, end, dummy);
     112}
     113
     114void ConservativeRoots::add(void* begin, void* end, JITStubRoutineSet& jitStubRoutines)
     115{
     116    genericAddSpan(begin, end, jitStubRoutines);
    116117}
    117118
     
    128129    {
    129130        m_stubRoutines.mark(address);
    130     }
    131    
    132     void markKnownJSCell(JSCell* cell)
    133     {
    134         if (cell->type() == CodeBlockType)
    135             m_codeBlocks.mark(m_codeBlocksLocker, jsCast<CodeBlock*>(cell));
     131        m_codeBlocks.mark(m_codeBlocksLocker, address);
    136132    }
    137133
Note: See TracChangeset for help on using the changeset viewer.