summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Santos Cordon <santoscordon@google.com> 2021-12-15 13:46:57 +0000
committer Santos Cordon <santoscordon@google.com> 2021-12-15 13:51:19 +0000
commit8f808c5d7954215d846a4fca227e53dd33dd3428 (patch)
tree3e5de26449aec974f97756ead94c8f363f919739 /libs/androidfw/StringPool.cpp
parentef38410960614e2046a16c3e5a8a7d73b8302e35 (diff)
Fix potential deadlock with SensorObserver.
Sensor Observer grabs it's own lock (mSOLock) when voting for a display mode, which then grabs the global DMD lock (mLock). When printing out the dump() method, DMD holds mLock, then calls into SensorObserver which grabs the mSOLock. This can cause a deadlock. There's no reason to hold mLock when calling SensorObserver's dump() method, so fix that. Test: adb shell dumpsys display Bug: 210086128 Change-Id: Idf685f94b818f04f30bee5b85a503f64d448291a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions