Chromium Code Reviews| Index: runtime/vm/dart.cc |
| diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
| index b68c88a9a95791441da67be72f0a13af8870323c..77e419ecd886ddedbfb748dc04fd2b52f902f506 100644 |
| --- a/runtime/vm/dart.cc |
| +++ b/runtime/vm/dart.cc |
| @@ -198,6 +198,9 @@ RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) { |
| isolate->heap()->EnableGrowthControl(); |
| isolate->set_init_callback_data(data); |
| Api::SetupAcquiredError(isolate); |
| + if (!isolate->object_store()->PreallocateObjects()) { |
| + return isolate->object_store()->sticky_error(); |
| + } |
|
siva
2013/06/21 00:55:29
Would be ideal to do this in the
if (snapshot_buf
|
| if (FLAG_print_class_table) { |
| isolate->class_table()->Print(); |
| } |