summaryrefslogtreecommitdiff
path: root/runtime/locks.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/locks.h')
-rw-r--r--runtime/locks.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/locks.h b/runtime/locks.h
index 72d4f652ff..341319c136 100644
--- a/runtime/locks.h
+++ b/runtime/locks.h
@@ -54,6 +54,7 @@ enum LockLevel {
kThreadListLock,
kBreakpointInvokeLock,
kTraceLock,
+ kProfilerLock,
kJdwpEventListLock,
kJdwpAttachLock,
kJdwpStartLock,
@@ -148,8 +149,11 @@ class Locks {
// Guards trace requests.
static Mutex* trace_lock_ ACQUIRED_AFTER(breakpoint_lock_);
+ // Guards profile objects.
+ static Mutex* profiler_lock_ ACQUIRED_AFTER(trace_lock_);
+
// Guards lists of classes within the class linker.
- static ReaderWriterMutex* classlinker_classes_lock_ ACQUIRED_AFTER(trace_lock_);
+ static ReaderWriterMutex* classlinker_classes_lock_ ACQUIRED_AFTER(profiler_lock_);
// When declaring any Mutex add DEFAULT_MUTEX_ACQUIRED_AFTER to use annotalysis to check the code
// doesn't try to hold a higher level Mutex.