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

Unified Diff: vm/heap.h

Issue 8423023: Add command line options to specify the various heap size parameters. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 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 | « no previous file | vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap.h
===================================================================
--- vm/heap.h (revision 1042)
+++ vm/heap.h (working copy)
@@ -29,6 +29,10 @@
kExecutable
};
+ // Default allocation sizes in MB for the old gen and code heaps.
+ static const intptr_t kHeapSizeInMB = 512;
+ static const intptr_t kCodeHeapSizeInMB = 4;
+
~Heap();
uword Allocate(intptr_t size, Space space) {
@@ -69,10 +73,6 @@
uword AllocateOld(intptr_t size);
uword AllocateCode(intptr_t size);
- // Allocation is limited to the below sizes.
- static const intptr_t kHeapSize = 512 * MB;
- static const intptr_t kCodeHeapSize = 4 * MB;
-
// The different spaces used for allocation.
Scavenger* new_space_;
PageSpace* old_space_;
« no previous file with comments | « no previous file | vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698