diff options
author | riddle_hsu <riddle_hsu@htc.com> | 2014-11-15 18:40:08 +0800 |
---|---|---|
committer | riddle_hsu <riddle_hsu@htc.com> | 2014-11-15 18:40:08 +0800 |
commit | 61231a5eff65f7123e0d7d9afae447c955ef22b4 (patch) | |
tree | fa609f34f9b6d8942f18160f0cc9135da42598ba /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5e6cf24213c5eacc9d3e3c8da5826be4a23f22af (diff) |
Avoid deadlock between ActivityManagerService and ProcessStatsService.
Root Cause:
Case 1
getStatsOverTime(#483) // lock mWriteLock, wait AMS
async performWriteState(#269) // lock mPendingWriteLock, wait mWriteLock
writeStateLocked(#218) // lock AMS, wait mPendingWriteLock
Case 2
getStatsOverTime(#483) // lock mWriteLock, wait AMS
writeStateSyncLocked,writeStateLocked(#269) // lock AMS, wait mWriteLock
Solution:
Reduce nested lock.
Others also post the same solution:
I437a5cedceb34292a6bd1d9e7610f52b1478e424
Change-Id: Ie9395f3f6359fe59e2282674fcfec9d123e53f25
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions