Eden collections should extend the IncrementalSweeper work list, not replace it.
[WebKit-https.git] / Source / JavaScriptCore / heap / IncrementalSweeper.cpp
index 3caf81e8dd5e99361988adc5b38d3cbbfcacbe07..3ff4d8c3a0406ffd6de99bd88cdd473da41b88d1 100644 (file)
@@ -101,18 +101,8 @@ bool IncrementalSweeper::sweepNextBlock()
     return m_vm->heap.sweepNextLogicallyEmptyWeakBlock();
 }
 
-void IncrementalSweeper::startSweeping(Vector<MarkedBlock*>&& blockSnapshot)
+void IncrementalSweeper::startSweeping()
 {
-    m_blocksToSweep = WTF::move(blockSnapshot);
-    scheduleTimer();
-}
-
-void IncrementalSweeper::addBlocksAndContinueSweeping(Vector<MarkedBlock*>&& blockSnapshot)
-{
-    Vector<MarkedBlock*> blocks = WTF::move(blockSnapshot);
-    m_blocksToSweep.appendVector(blocks);
-    std::sort(m_blocksToSweep.begin(), m_blocksToSweep.end());
-    m_blocksToSweep.shrink(std::unique(m_blocksToSweep.begin(), m_blocksToSweep.end()) - m_blocksToSweep.begin());
     scheduleTimer();
 }
 
@@ -134,11 +124,7 @@ void IncrementalSweeper::doWork()
 {
 }
 
-void IncrementalSweeper::startSweeping(Vector<MarkedBlock*>&&)
-{
-}
-
-void IncrementalSweeper::addBlocksAndContinueSweeping(Vector<MarkedBlock*>&&)
+void IncrementalSweeper::startSweeping()
 {
 }