aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenDriver.c
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2010-03-24 13:35:19 -0700
committerAndy McFadden <fadden@android.com>2010-03-24 15:00:14 -0700
commitea0419f0cd14215d74d8dfeb0e5c0bb7d7513baf (patch)
tree1210415bafe66081eb368324f16ead51b10e8dc1 /vm/compiler/codegen/arm/CodegenDriver.c
parentbe41c4f3d57b3f43dceb13653f17f75ea4983701 (diff)
Show current values of mutexes in thread dump.
Experimental feature; may or may not be useful. Dump the current value of half a dozen VM mutexes. This will tell us if they're unlocked, locked, or contended-for at the point somebody does a thread dump. For example, when the GC notices the HeapWorker watchdog has expired: I/dalvikvm( 2828): DALVIK THREADS: I/dalvikvm( 2828): (mutexes: tll=0 tsl=0 tscl=0 ghl=1 hwl=1 hwll=0) In this case, gcHeapLock and heapWorkerLock are held, the rest are not. If this turns out to be useful we can put more effort into the output format. The pthread lib doesn't insert the thread ID unless you're using recursive or errorcheck mutexes, which (for performance reasons) we try not to use. Change-Id: I272534d8c9db6340cfc23bfdddb47beefc2efbfb
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenDriver.c')
0 files changed, 0 insertions, 0 deletions