| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 71cd301581fae8c3679c546f3ff4a2834440b365..58de1ab91ea1e2102ea4c092f3e16b396f6a03cd 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -1790,7 +1790,8 @@ Isolate::Isolate()
|
| deferred_handles_head_(NULL),
|
| optimizing_compiler_thread_(NULL),
|
| sweeper_thread_(NULL),
|
| - stress_deopt_count_(0) {
|
| + stress_deopt_count_(0),
|
| + allocation_profiler_(false) {
|
| id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1);
|
| TRACE_ISOLATE(constructor);
|
|
|
| @@ -2148,6 +2149,10 @@ bool Isolate::Init(Deserializer* des) {
|
| ASSERT(des == NULL);
|
| }
|
|
|
| + if (is_allocation_profiler_enabled()) {
|
| + ASSERT(des == NULL);
|
| + }
|
| +
|
| // The initialization process does not handle memory exhaustion.
|
| DisallowAllocationFailure disallow_allocation_failure;
|
|
|
|
|