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

Unified Diff: src/heap/spaces.cc

Issue 734363002: Introduce an option to do regular new space growing for a while (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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 | « src/heap/spaces.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 30b141fcd32965637bd6ed1a2cc29284dff33750..ea6d662fa0706ee09a9199e354f24c89c2b2c11e 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -1398,7 +1398,8 @@ bool NewSpace::AddFreshPage() {
if (!to_space_.AdvancePage()) {
// Check if we reached the target capacity yet. If not, try to commit a page
// and continue.
- if ((to_space_.TotalCapacity() < to_space_.TargetCapacity()) &&
+ if (grow_to_target_capacity_ &&
+ (to_space_.TotalCapacity() < to_space_.TargetCapacity()) &&
GrowOnePage()) {
if (!to_space_.AdvancePage()) {
// It doesn't make sense that we managed to commit a page, but can't use
« no previous file with comments | « src/heap/spaces.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698