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

Unified Diff: runtime/vm/pages.cc

Issue 668473002: - Rename flags to reflect the generation impacted. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 | « runtime/vm/benchmark_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
===================================================================
--- runtime/vm/pages.cc (revision 41169)
+++ runtime/vm/pages.cc (working copy)
@@ -15,12 +15,14 @@
namespace dart {
-DEFINE_FLAG(int, heap_growth_space_ratio, 20,
- "The desired maximum percentage of free space after GC");
-DEFINE_FLAG(int, heap_growth_time_ratio, 3,
- "The desired maximum percentage of time spent in GC");
-DEFINE_FLAG(int, heap_growth_rate, 280,
+DEFINE_FLAG(int, heap_growth_rate, 0,
"The max number of pages the heap can grow at a time");
+DEFINE_FLAG(int, old_gen_growth_space_ratio, 20,
+ "The desired maximum percentage of free space after old gen GC");
+DEFINE_FLAG(int, old_gen_growth_time_ratio, 3,
+ "The desired maximum percentage of time spent in old gen GC");
+DEFINE_FLAG(int, old_gen_growth_rate, 280,
+ "The max number of pages the old generation can grow at a time");
DEFINE_FLAG(bool, print_free_list_before_gc, false,
"Print free list statistics before a GC");
DEFINE_FLAG(bool, print_free_list_after_gc, false,
@@ -141,9 +143,9 @@
tasks_lock_(new Monitor()),
tasks_(0),
page_space_controller_(heap,
- FLAG_heap_growth_space_ratio,
- FLAG_heap_growth_rate,
- FLAG_heap_growth_time_ratio),
+ FLAG_old_gen_growth_space_ratio,
+ FLAG_old_gen_growth_rate,
+ FLAG_old_gen_growth_time_ratio),
gc_time_micros_(0),
collections_(0) {
}
« no previous file with comments | « runtime/vm/benchmark_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698