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

Unified Diff: runtime/vm/dart.cc

Issue 329163003: Grow new gen (1M -> 4M -> 16M on 32-bit) when there is little garbage. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | runtime/vm/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
===================================================================
--- runtime/vm/dart.cc (revision 37279)
+++ runtime/vm/dart.cc (working copy)
@@ -30,11 +30,11 @@
namespace dart {
-DEFINE_FLAG(int, new_gen_heap_size, 32, "new gen heap size in MB,"
- "e.g: --new_gen_heap_size=64 allocates a 64MB new gen heap");
+DEFINE_FLAG(int, new_gen_semi_max_size, (kWordSize <= 4) ? 16 : 32,
+ "Max size of new gen semi space in MB");
DEFINE_FLAG(int, old_gen_heap_size, Heap::kHeapSizeInMB,
- "old gen heap size in MB,"
- "e.g: --old_gen_heap_size=1024 allocates a 1024MB old gen heap");
+ "Max size of old gen heap size in MB,"
+ "e.g: --old_gen_heap_size=1024 allows up to 1024MB old gen heap");
DECLARE_FLAG(bool, print_class_table);
DECLARE_FLAG(bool, trace_isolates);
@@ -213,7 +213,7 @@
StackZone zone(isolate);
HandleScope handle_scope(isolate);
Heap::Init(isolate,
- FLAG_new_gen_heap_size * MBInWords,
+ FLAG_new_gen_semi_max_size * MBInWords,
FLAG_old_gen_heap_size * MBInWords);
ObjectIdRing::Init(isolate);
ObjectStore::Init(isolate);
« no previous file with comments | « no previous file | runtime/vm/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698