summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Sebastian Achim <sebastian.1.achim@sony.com> 2023-11-29 15:26:10 +0100
committer Steve Statia <stevestatia@google.com> 2024-01-17 22:15:55 +0000
commit8047e4e25a6c3934502e21cb8dbec8007f19c222 (patch)
tree8cbe425f57403296f6e318f26f4493fd6a3414f3 /libs/hwui/FrameInfoVisualizer.cpp
parent0553b14ac491ee350d857f196e208e6525df17ee (diff)
Move getActiveSubscriptionInfo to solve deadlock
Solve deadlock between system_server and com.android.phone. A system_server thread hold a TelephonyRegistry mRecords object while doing a binder transaction with com.android.phone for getActiveSubscriptionInfo(). When all binder threads in com.android.phone are busy it will take time until this is scheduled. There are cases when com.android.phone is doing a binder transaction with system_server to acquire the same mRecords object, resulting in deadlock. Align with other getPhoneIdFromSubId() calls and move the call to SubscriptionManager getActiveSubscriptionInfo outside of synchronized block to prevent this from happening. Test: atest TelephonyRegistryTest Bug: 315932019 Change-Id: Ifadf9d33ef2072352b0bd1a805da9a5f0329114e
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions