| Index: src/heap/spaces.cc
|
| diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
|
| index 430f31de6c6d61db8973191a6a7d368ca0b111e8..2b696ea8eb5238f91f5ade5702cc663f4c09cc73 100644
|
| --- a/src/heap/spaces.cc
|
| +++ b/src/heap/spaces.cc
|
| @@ -2569,7 +2569,8 @@ void PagedSpace::PrepareForMarkCompact() {
|
|
|
|
|
| intptr_t PagedSpace::SizeOfObjects() {
|
| - DCHECK(heap()->mark_compact_collector()->sweeping_in_progress() ||
|
| + DCHECK(FLAG_predictable ||
|
| + heap()->mark_compact_collector()->sweeping_in_progress() ||
|
| (unswept_free_bytes_ == 0));
|
| return Size() - unswept_free_bytes_ - (limit() - top());
|
| }
|
|
|