diff options
author | Andy McFadden <fadden@android.com> | 2010-03-24 13:35:19 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2010-03-24 15:00:14 -0700 |
commit | 7c209036eac2ad3291ffac5476b24cf329aa3a80 (patch) | |
tree | f661ec3cf4d5ec026e40389d2bb7964dd81f98c1 | |
parent | 58af499ab73dfcd042670550960e272c7c03d7e0 (diff) | |
download | libcore-7c209036eac2ad3291ffac5476b24cf329aa3a80.zip libcore-7c209036eac2ad3291ffac5476b24cf329aa3a80.tar.gz libcore-7c209036eac2ad3291ffac5476b24cf329aa3a80.tar.bz2 |
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
0 files changed, 0 insertions, 0 deletions