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

Unified Diff: runtime/vm/symbols.cc

Issue 247623007: Remove VM isolate new-space allocation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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/scavenger.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.cc
===================================================================
--- runtime/vm/symbols.cc (revision 35335)
+++ runtime/vm/symbols.cc (working copy)
@@ -122,7 +122,7 @@
// Setup the symbol table used within the String class.
const intptr_t initial_size = (isolate == Dart::vm_isolate()) ?
kInitialVMIsolateSymtabSize : kInitialSymtabSize;
- const Array& array = Array::Handle(Array::New(initial_size + 1));
+ const Array& array = Array::Handle(Array::New(initial_size + 1, Heap::kOld));
// Last element contains the count of used slots.
array.SetAt(initial_size, Smi::Handle(Smi::New(0)));
@@ -339,7 +339,8 @@
num_of_grows_ += 1;
intptr_t table_size = symbol_table.Length() - 1;
intptr_t new_table_size = table_size * 2;
- Array& new_symbol_table = Array::Handle(Array::New(new_table_size + 1));
+ Array& new_symbol_table =
+ Array::Handle(Array::New(new_table_size + 1, Heap::kOld));
// Copy all elements from the original symbol table to the newly allocated
// array.
String& element = String::Handle();
« no previous file with comments | « runtime/vm/scavenger.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698