| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index d323f8cad96c6b8234d1730df6cc1ccc8ce73821..21f465fe7863741665c3eac6d7afee9542dcb3e9 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -384,7 +384,9 @@ bool Heap::InOldSpaceSlow(Address address) {
|
| }
|
|
|
| bool Heap::OldGenerationAllocationLimitReached() {
|
| - if (!incremental_marking()->IsStopped()) return false;
|
| + if (!incremental_marking()->IsStopped() && !ShouldOptimizeForMemoryUsage()) {
|
| + return false;
|
| + }
|
| return OldGenerationSpaceAvailable() < 0;
|
| }
|
|
|
|
|