Reduce lock contention when debugging
Uses a ReaderWriterMutex for the breakpoint lock to reduce contention during
debugging session.
Also adds missing thread safety annotations on fields and methods related to
instrumentation and debugging.
Bug: 16814665
Bug: 11667502
(cherry picked from commit 59d9d668d4f4286813afe2b4e7c6db839222ce96)
Change-Id: I5f1156da8c6cc8316d6db16e6cfb2470fe289ad3
diff --git a/runtime/thread_list.cc b/runtime/thread_list.cc
index 740e3b0..afb98ca 100644
--- a/runtime/thread_list.cc
+++ b/runtime/thread_list.cc
@@ -644,7 +644,7 @@
#endif
AssertThreadsAreSuspended(self, self, debug_thread);
- VLOG(threads) << *self << " SuspendAll complete";
+ VLOG(threads) << *self << " SuspendAllForDebugger complete";
}
void ThreadList::SuspendSelfForDebugger() {