OSDN Git Service

Reduce lock contention when debugging
authorSebastien Hertz <shertz@google.com>
Tue, 19 Aug 2014 13:33:43 +0000 (15:33 +0200)
committerSebastien Hertz <shertz@google.com>
Fri, 22 Aug 2014 11:55:39 +0000 (13:55 +0200)
commit59d9d668d4f4286813afe2b4e7c6db839222ce96
tree3ba84aff10c019f8b73fc063c52f698580f9f202
parente246f33605a2d6b96f2c7221fa0165dc067c3079
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
Change-Id: I056cdafa91109e0c83806c8d8df75c37ade0a354
runtime/base/mutex.cc
runtime/base/mutex.h
runtime/debugger.cc
runtime/instrumentation.h
runtime/thread_list.cc