Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index f18d0896ac121583deea2030fb5086e38fb2debe..99136d8cf0e6e80d94dd1e868899d9111898b847 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -349,7 +349,9 @@ bool Heap::InOldDataSpace(Object* object) { |
bool Heap::OldGenerationAllocationLimitReached() { |
if (!incremental_marking()->IsStopped()) return false; |
- return OldGenerationSpaceAvailable() < 0; |
+ return OldGenerationSpaceAvailable() < 0 || |
+ old_generation_committed_memory_limit_ < |
+ CommittedOldGenerationMemory(); |
} |