summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2019-04-02 16:19:12 -0700
committerHui Yu <huiyu@google.com>2019-04-09 18:37:28 +0000
commita4d089f2d09370ffa39119226417550f52e5148e (patch)
tree6857aab3bb1d66cfae673bdb825e5f444df5516d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent242f2c93fabe61d2c55bcb2a3a55857d35fc2b8a (diff)
Add a list to track unfinished tasks and dumpStackTraces
Previously exception message only prints unstarted tasks in the thread pool. We also want to know the started but unfinished tasks. Add an array list mPendingTask to track all unfinished tasks. Also dumpStackTraces() so we can tell why the task in the threadpool failed to finish on time. This will help us to find root cause of IllegalStateException in SystemServerInitThreadPool.shutdown(). Bug: 128928718 Test: Reboot device, adb logcat | grep SystemServerInitThreadPool. Force a task to sleep for 30 seconds, observe IllegalStateException with unfinished task printed and stack traces is dumped in a ANR file. Change-Id: I98ba86e58ae1f2e1ab2b3f8ea3724c6b70a796eb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions