Index: runtime/vm/object_store.cc |
=================================================================== |
--- runtime/vm/object_store.cc (revision 19000) |
+++ runtime/vm/object_store.cc (working copy) |
@@ -87,6 +87,7 @@ |
empty_context_(Context::null()), |
stack_overflow_(Instance::null()), |
out_of_memory_(Instance::null()), |
+ preallocated_stack_trace_(Stacktrace::null()), |
keyword_symbols_(Array::null()), |
receive_port_create_function_(Function::null()), |
lookup_receive_port_function_(Function::null()), |
@@ -136,6 +137,14 @@ |
return false; |
} |
set_out_of_memory(Instance::Cast(result)); |
+ const Array& func_array = Array::Handle( |
+ Array::New(Stacktrace::kPreallocatedStackdepth, Heap::kOld)); |
+ const Array& code_array = Array::Handle( |
+ Array::New(Stacktrace::kPreallocatedStackdepth, Heap::kOld)); |
+ const Array& pc_offset_array = Array::Handle( |
+ Array::New(Stacktrace::kPreallocatedStackdepth, Heap::kOld)); |
+ result = Stacktrace::New(func_array, code_array, pc_offset_array); |
+ set_preallocated_stack_trace(Stacktrace::Cast(result)); |
#endif |
return true; |
} |