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

Unified Diff: runtime/vm/heap.cc

Issue 864843002: Remove default heap size limit and add separate limit for externals. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/heap.h ('k') | runtime/vm/pages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 43108)
+++ runtime/vm/heap.cc (working copy)
@@ -43,7 +43,8 @@
Heap::Heap(Isolate* isolate,
intptr_t max_new_gen_semi_words,
- intptr_t max_old_gen_words)
+ intptr_t max_old_gen_words,
+ intptr_t max_external_words)
: isolate_(isolate),
read_only_(false),
gc_in_progress_(false),
@@ -57,7 +58,7 @@
new_space_ = new Scavenger(this,
max_new_gen_semi_words,
kNewObjectAlignmentOffset);
- old_space_ = new PageSpace(this, max_old_gen_words);
+ old_space_ = new PageSpace(this, max_old_gen_words, max_external_words);
stats_.num_ = 0;
}
@@ -434,9 +435,13 @@
void Heap::Init(Isolate* isolate,
intptr_t max_new_gen_words,
- intptr_t max_old_gen_words) {
+ intptr_t max_old_gen_words,
+ intptr_t max_external_words) {
ASSERT(isolate->heap() == NULL);
- Heap* heap = new Heap(isolate, max_new_gen_words, max_old_gen_words);
+ Heap* heap = new Heap(isolate,
+ max_new_gen_words,
+ max_old_gen_words,
+ max_external_words);
isolate->set_heap(heap);
}
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/pages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698