Chromium Code Reviews| Index: src/heap/mark-compact.cc |
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
| index cd5f24ab47a30fc2e073460253541d9844046d5d..22fdf53184209cf511f6452d481da4769f2c492d 100644 |
| --- a/src/heap/mark-compact.cc |
| +++ b/src/heap/mark-compact.cc |
| @@ -3678,7 +3678,9 @@ int MarkCompactCollector::SweepInParallel(PagedSpace* space, |
| max_freed = SweepInParallel(p, space); |
| DCHECK(max_freed >= 0); |
| if (required_freed_bytes > 0 && max_freed >= required_freed_bytes) { |
| - return max_freed; |
| + if (!p->IsFlagSet(Page::NEVER_ALLOCATE_ON_PAGE)) { |
|
Hannes Payer (out of office)
2015/12/11 16:10:37
I think I would prefer dropping Page::NEVER_ALLOCA
Michael Lippautz
2015/12/16 09:24:55
They are already filtered out during free list ope
|
| + return max_freed; |
| + } |
| } |
| max_freed_overall = Max(max_freed, max_freed_overall); |
| if (p == space->end_of_unswept_pages()) break; |