summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHai Zhang <zhanghai@google.com>2019-04-12 21:37:21 +0800
committerHai Zhang <zhanghai@google.com>2019-04-13 11:56:37 +0800
commit48f36c6afe2f72abcd635823bc76ff4a6ba50457 (patch)
tree7c2bef0f0004cd31454f4d18085c2ad9623adde1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent21df04365d9350c5d51f6fc1022590dbbcf30b34 (diff)
Cache service component name in RoleControllerManager to avoid deadlock.
PackageManagerService needs to know the default home/browser app, often with the PackageManagerService lock held, so we should avoid holding the RoleManagerService lock and trying to acquire the PackageManagerService lock. Right now the only place we need to access PackageManager while holding RoleManagerService lock is when creating a RoleControllerManager, but actually the component name of the remote service should be the same for any user, so we can just cache the component name upfront to avoid the deadlock. Bug: 130130942 Bug: 130303431 Test: manual Change-Id: Id19edb362a1524663d8d3eb27cef161cf1fa4542
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions