summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.cpp
diff options
context:
space:
mode:
authorzljing <zljing@codeaurora.org>2018-04-16 16:42:41 +0800
committerzljing <zljing@codeaurora.org>2018-07-16 11:45:30 +0800
commite711de2a1937c32b9081b6b798eb28ef05ab759e (patch)
tree5ddf173ce0ec81c168f8cbbda1065b06fcdefe58 /libs/hwui/renderthread/RenderThread.cpp
parent0342733bce187b400703ba5dc15132315d6373d8 (diff)
ensure all threads end and fix NPE
1 When there exception happens, main function exits but some submitted tasks will run and get cleared local variables, which will cause NPE. So change the condition to wait all submitted tasks exit. 2 When there uncatched exception happens in the ThreadPoolExecutor, current thread will be destoryed and new thread will be created, which will cause index out of bounds. So add bound check. Change-Id: I9a8360efadddfb0cac8bba4c746754a4d7886363 CRs-Fixed: 2223180
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.cpp')
0 files changed, 0 insertions, 0 deletions