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

Unified Diff: src/defaults.cc

Issue 24996004: Merged r16977, r16979, r16983 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/defaults.cc
diff --git a/src/defaults.cc b/src/defaults.cc
index 51159a8ed5faccd1c9ecb68024b6cd2866d91a51..301155f94dcb24f758eecf7f2d113ab026853381 100644
--- a/src/defaults.cc
+++ b/src/defaults.cc
@@ -45,15 +45,15 @@ bool ConfigureResourceConstraintsForCurrentPlatform(
// The young_space_size should be a power of 2 and old_generation_size should
// be a multiple of Page::kPageSize.
if (physical_memory > 2ul * i::GB) {
- constraints->set_max_young_space_size(8 * lump_of_memory);
+ constraints->set_max_young_space_size(16 * lump_of_memory);
constraints->set_max_old_space_size(700 * lump_of_memory);
constraints->set_max_executable_size(256 * lump_of_memory);
} else if (physical_memory > 512ul * i::MB) {
- constraints->set_max_young_space_size(4 * lump_of_memory);
+ constraints->set_max_young_space_size(8 * lump_of_memory);
constraints->set_max_old_space_size(192 * lump_of_memory);
constraints->set_max_executable_size(192 * lump_of_memory);
} else /* (physical_memory <= 512GB) */ {
- constraints->set_max_young_space_size(1 * lump_of_memory);
+ constraints->set_max_young_space_size(2 * lump_of_memory);
constraints->set_max_old_space_size(96 * lump_of_memory);
constraints->set_max_executable_size(96 * lump_of_memory);
}
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698