summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLucas Lin <lucaslin@google.com>2020-05-07 10:12:30 +0000
committerLucas Lin <lucaslin@google.com>2020-05-08 02:59:28 +0000
commit62ee8f6f85616f2394581bac7aa5d47283d542c8 (patch)
treed3d6bccd685a5c4303f0b798909dc6531bbecbae /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent830401575bbaf0796b5f733767bf1cccd978de7a (diff)
Broadcast ACTION_NETWORK_STATS_UPDATED in NetworkStatsHandler
There is a corner case which may cause the deadlock: When NetworkStatsService tried to broadcast the intent, NetworkStatsService was waiting for a lock which was hold by ActivityManagerService. In the same time, ActivityManagerService was waiting for ActiveService#startServiceInnerLocked() to get a lock which was hold by ConnectivityService. ConnectivityService was waiting for a lock which was hold by BatteryStatsImpl. BatteryStatsImpl was waiting for a lock which was hold by NetworkStatsService, and the lock was locked by NetworkStatsService when NetworkStatsService tried to broadcast the intent. To prevent deadlock when broadcasting the intent in performPollLocked(), move the intent broadcasting from performPollLocked() to NetworkStatsHandler. Bug: 150418178 Bug: 155155473 Test: 1. Create the second user and see if the device will do factory reset or not. 2. Factory reset manually and see if there is a deadlock. Change-Id: I80569cb4388beb3fd6cbf64a7885bccee8b1c53c Merged-In: Icf88d3e7a38562ab15187f6c71bc8fb0486d37c0 (cherry picked from commit 3f8ab0350450202910ea702799570c538e96d5cd)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions