Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 338d954ab020e3d7572fe5bcb73e077800e7f504..a2edfdaa96e8bdcabc8065849b833b2438d93efe 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -390,14 +390,7 @@ void MarkCompactCollector::ClearMarkbits() { |
ClearMarkbitsInPagedSpace(heap_->map_space()); |
ClearMarkbitsInPagedSpace(heap_->old_space()); |
ClearMarkbitsInNewSpace(heap_->new_space()); |
- |
- LargeObjectIterator it(heap_->lo_space()); |
- for (HeapObject* obj = it.Next(); obj != NULL; obj = it.Next()) { |
- ObjectMarking::ClearMarkBit(obj); |
- MemoryChunk* chunk = MemoryChunk::FromAddress(obj->address()); |
- chunk->ResetProgressBar(); |
- chunk->ResetLiveBytes(); |
- } |
+ heap_->lo_space()->ClearMarkingStateOfLiveObjects(); |
} |
class MarkCompactCollector::Sweeper::SweeperTask : public v8::Task { |