| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index 93914781e70643181ecbd29081d0319b684501ce..69cf62124570538157e38e7529c349666b89c57d 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -1719,8 +1719,8 @@ int MarkCompactCollector::DiscoverAndEvacuateBlackObjectsOnPage(
|
| if (!new_space->AddFreshPage()) {
|
| // Shouldn't happen. We are sweeping linearly, and to-space
|
| // has the same number of pages as from-space, so there is
|
| - // always room.
|
| - UNREACHABLE();
|
| + // always room unless we are in an OOM situation.
|
| + FatalProcessOutOfMemory("MarkCompactCollector: semi-space copy\n");
|
| }
|
| allocation = new_space->AllocateRaw(size, alignment);
|
| DCHECK(!allocation.IsRetry());
|
|
|