Index: Source/platform/heap/Heap.cpp |
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp |
index 5cd8cdbed8da3cf42c369a32a89ad59964f7a4ae..df1dca7b730a8d767606bbf360af0e11e9830f88 100644 |
--- a/Source/platform/heap/Heap.cpp |
+++ b/Source/platform/heap/Heap.cpp |
@@ -574,11 +574,7 @@ void Heap::globalWeakProcessing(Visitor* visitor) |
void Heap::collectAllGarbage() |
{ |
- // FIXME: Oilpan: we should perform a single GC and everything |
- // should die. Unfortunately it is not the case for all objects |
- // because the hierarchy was not completely moved to the heap and |
- // some heap allocated objects own objects that contain persistents |
- // pointing to other heap allocated objects. |
+ // We need to run multiple GCs to collect a chain of persistent handles. |
size_t previousLiveObjects = 0; |
for (int i = 0; i < 5; ++i) { |
collectGarbage(ThreadState::NoHeapPointersOnStack, ThreadState::GCWithSweep, ForcedGC); |