summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2021-12-15 13:46:57 +0000
committerSantos Cordon <santoscordon@google.com>2021-12-23 15:39:00 +0000
commitab7c9c006528efd0a2651b612bdcc0467064e592 (patch)
tree62fab875c93e4c7fea8a541e4b0963bc48a2a22d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent7fa6c03fdb922e772c940bfe9ef4ad4b32da2822 (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 (cherry picked from commit 8f808c5d7954215d846a4fca227e53dd33dd3428)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions