summaryrefslogtreecommitdiffstats
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
commit7c209036eac2ad3291ffac5476b24cf329aa3a80 (patch)
treef661ec3cf4d5ec026e40389d2bb7964dd81f98c1
parent58af499ab73dfcd042670550960e272c7c03d7e0 (diff)
downloadlibcore-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