Index: runtime/vm/code_observers.h |
diff --git a/runtime/vm/code_observers.h b/runtime/vm/code_observers.h |
index 82818159e3866369e92fd20272391b9aeedf4a47..2e857f77dd2a384c95e95f6fb9cf5dcf992fab94 100644 |
--- a/runtime/vm/code_observers.h |
+++ b/runtime/vm/code_observers.h |
@@ -10,6 +10,8 @@ |
namespace dart { |
+class Mutex; |
+ |
// Object observing code creation events. Used by external profilers and |
// debuggers to map address ranges to function names. |
class CodeObserver { |
@@ -53,7 +55,12 @@ class CodeObservers : public AllStatic { |
static void DeleteAll(); |
+ static Mutex* mutex() { |
+ return mutex_; |
+ } |
+ |
private: |
+ static Mutex* mutex_; |
static intptr_t observers_length_; |
static CodeObserver** observers_; |
}; |