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

Unified Diff: src/heap/heap.cc

Issue 1060533003: Experiment: reduce heap growing factor to investigate OOM impact. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index b911ad1ee68006ba6358f33c4f4c50996f4b094b..8e3c42d7d645a9f807b6af4d06b3526a84a53dd1 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -5175,11 +5175,11 @@ intptr_t Heap::OldGenerationAllocationLimit(intptr_t old_gen_size,
const int kMaxHandles = 1000;
const int kMinHandles = 100;
double min_factor = 1.1;
- double max_factor = 4;
+ double max_factor = 1.5;
// We set the old generation growing factor to 2 to grow the heap slower on
// memory-constrained devices.
if (max_old_generation_size_ <= kMaxOldSpaceSizeMediumMemoryDevice) {
- max_factor = 2;
+ max_factor = 1.5;
}
// If there are many freed global handles, then the next full GC will
// likely collect a lot of garbage. Choose the heap growing factor
« no previous file with comments | « no previous file | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698