commit | 7c0c3793722aea293c45921ef50e4adcdf9645ce | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias.agopian@gmail.com> | Mon Sep 05 23:54:55 2011 -0700 |
committer | Mathias Agopian <mathias@google.com> | Fri Dec 09 14:38:57 2011 -0800 |
tree | f8cf3c609929a34bbdf40d83396545f00d1fd6b5 | |
parent | 022d303116f742cd337852d37547e2ea24d97a25 [diff] |
implement pthread mutex deadlock detection this works by building a directed graph of acquired pthread mutexes and making sure there are no loops in that graph. this feature is enabled with: setprop debug.libc.pthread 1 when a potential deadlock is detected, a large warning is output to the log with appropriate back traces. currently disabled at compile-time. set PTHREAD_DEBUG_ENABLED=1 to enable. Change-Id: I916eed2319599e8aaf8f229d3f18a8ddbec3aa8a