Index: src/heap/spaces.cc |
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc |
index f19821070b7efcc2dbe9aef861b5154d86525ef5..3a5a4d6b58495e0c8be65e44de3116ace0232228 100644 |
--- a/src/heap/spaces.cc |
+++ b/src/heap/spaces.cc |
@@ -75,6 +75,8 @@ |
} |
cur_page = cur_page->next_page(); |
if (cur_page == space_->anchor()) return false; |
+ cur_page->heap()->mark_compact_collector()->SweepOrWaitUntilSweepingCompleted( |
+ cur_page); |
cur_addr_ = cur_page->area_start(); |
cur_end_ = cur_page->area_end(); |
DCHECK(cur_page->WasSwept() || cur_page->SweepingCompleted()); |