Ignore:
Timestamp:
Nov 19, 2013, 11:10:56 AM (12 years ago)
Author:
[email protected]
Message:

IncrementalSweeper needs to use DelayedReleaseScope too
https://bugs.webkit.org/show_bug.cgi?id=124558

Reviewed by Filip Pizlo.

It does sweeping too, so it needs to use it. Also refactored an
ASSERT that should have caught this sooner.

  • heap/DelayedReleaseScope.h:

(JSC::DelayedReleaseScope::isInEffectFor):

  • heap/IncrementalSweeper.cpp:

(JSC::IncrementalSweeper::doSweep):

  • heap/MarkedBlock.cpp:

(JSC::MarkedBlock::sweep):

  • heap/MarkedSpace.cpp:

(JSC::MarkedSpace::sweep):

File:
1 edited

Legend:

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

    r156780 r159508  
    2828
    2929#include "APIShims.h"
     30#include "DelayedReleaseScope.h"
    3031#include "Heap.h"
    3132#include "JSObject.h"
     
    101102void IncrementalSweeper::doSweep(double sweepBeginTime)
    102103{
     104    DelayedReleaseScope scope(m_vm->heap.m_objectSpace);
    103105    while (m_currentBlockToSweepIndex < m_blocksToSweep.size()) {
    104106        sweepNextBlock();
Note: See TracChangeset for help on using the changeset viewer.