| Index: runtime/vm/code_observers.cc
|
| diff --git a/runtime/vm/code_observers.cc b/runtime/vm/code_observers.cc
|
| index 487337136c137545f93433cfa35be01ff064b5bb..0d80a637e3377acb181791cb4148cd49ca61551c 100644
|
| --- a/runtime/vm/code_observers.cc
|
| +++ b/runtime/vm/code_observers.cc
|
| @@ -2,12 +2,15 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +
|
| #include "vm/code_observers.h"
|
|
|
| +#include "platform/thread.h"
|
| #include "vm/os.h"
|
|
|
| namespace dart {
|
|
|
| +Mutex* CodeObservers::mutex_ = NULL;
|
| intptr_t CodeObservers::observers_length_ = 0;
|
| CodeObserver** CodeObservers::observers_ = NULL;
|
|
|
| @@ -56,6 +59,9 @@ void CodeObservers::DeleteAll() {
|
|
|
|
|
| void CodeObservers::InitOnce() {
|
| + ASSERT(mutex_ == NULL);
|
| + mutex_ = new Mutex();
|
| + ASSERT(mutex_ != NULL);
|
| OS::RegisterCodeObservers();
|
| }
|
|
|
|
|