Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: src/heap/heap-inl.h

Issue 1038653003: Change halfway-to-the-max GC trigger to measure committed pages, not allocated objects Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile error Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
« src/heap/heap.cc ('K') | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698