Commit b0b1d7a9 authored by ulan's avatar ulan Committed by Commit bot

[heap] Check that sweeping is completed when collecting evacuation

candidates.

BUG=chromium:650314

Review-Url: https://codereview.chromium.org/2459003002
Cr-Commit-Position: refs/heads/master@{#40651}
parent d800644c
......@@ -638,6 +638,9 @@ void MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) {
std::vector<LiveBytesPagePair> pages;
pages.reserve(number_of_pages);
DCHECK(!sweeping_in_progress());
DCHECK(!FLAG_concurrent_sweeping ||
sweeper().IsSweepingCompleted(space->identity()));
for (Page* p : *space) {
if (p->NeverEvacuate()) continue;
// Invariant: Evacuation candidates are just created when marking is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment