Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index a9ea707a9bff90a5fe4e56c9ca3f24a889a87a45..e5ca53ee167f5e0972b078012073d17d87e10a1e 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -242,6 +242,7 @@ void MarkCompactCollector::TearDown() { |
void MarkCompactCollector::AddEvacuationCandidate(Page* p) { |
+ if (p->NeverEvacuate()) return; |
Hannes Payer (out of office)
2015/02/12 13:20:23
Dont' make the page an evacuation candidate. Pleas
|
p->MarkEvacuationCandidate(); |
evacuation_candidates_.Add(p); |
} |
@@ -718,8 +719,6 @@ void MarkCompactCollector::CollectEvacuationCandidates(PagedSpace* space) { |
Candidate* least = NULL; |
PageIterator it(space); |
- if (it.has_next()) it.next(); // Never compact the first page. |
- |
while (it.has_next()) { |
Page* p = it.next(); |
p->ClearEvacuationCandidate(); |