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

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

Issue 2225363002: [heap] Enforce finalization of marking at heap limit when optimizing for memory usage. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [heap] Enforce finalization of marking at heap limit when optimizing for memory usage. Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698