summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2020-04-18 01:37:14 +0800
committerTiger Huang <tigerhuang@google.com>2020-04-21 21:04:45 +0800
commit9629242dd4b19c974e80cb772eaf7af6d79fae38 (patch)
tree6be2e70814c502a109b0f850ac2369ec1f2e827d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent896cdcca42732ebaeb31cdb3c0c45e0746a85e77 (diff)
Copy leashes about to return to prevent others release them
When a thread is excuting addWindow or relayoutWindow, there might be another thread attempting to call updateInputMethodTargetWindow but waiting for the lock. When the lock is released by addwindow or relayoutWindow, the logic inside updateInputMethodTargetWindow might release the leash that addWindow or relayoutWindow is about to return. This CL return the copied leashes, so that other thread won't release the leash which is about to return. Fix: 154175855 Test: atest CtsWidgetTestCases Change-Id: I48a7dbf1576e07302c66955e2d3c86037e987617
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions