summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Charles Chen <charlesccchen@google.com> 2024-02-06 22:35:10 +0800
committer Charles Chen <charlesccchen@google.com> 2024-02-07 10:41:30 +0800
commit577bd5402d3055befe933f8bcc7bf734236bb645 (patch)
tree7868205adc1aa034e19a2efd75e62c93fe3eeac1 /libs/hwui/FrameInfoVisualizer.cpp
parentb416a7142a90fbdd190c78533d8311e9a47cab34 (diff)
Fix deadlock between WMGlobal and WMS
In the system server, there may be a deadlock between WMGlobal and WMS A possible scenario is: WMS holds globalLock and call WMGlobal#getWindowManagerService, which required to lock WMGlobal instance, while the other compnent holds WMGlobal and call WMS API directly without binder call, which requires WM gobalLock. This CL sets WMS for system proces. In this way, WMGlobal#getWindowManagerService could be used direcly without holding WMGlobal instance and prevent deadlock. Test: atest WmTests Bug: 320848325 Change-Id: I2617d4139d4305161d6712d92a90fd9207d8227c
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions