summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Li Li <dualli@google.com> 2022-03-03 11:05:39 -0800
committer Li Li <dualli@google.com> 2022-03-04 23:01:11 +0000
commit950919b221e635458e532c5445f56a24a2ef3e59 (patch)
treec258fc73fdf19966270d8f2ab70bcb7083eb860b /libs/androidfw/StringPool.cpp
parent836db75e0f49b39a648eaa3d21e22c4c4333b0a3 (diff)
Fix race between WM launching app and AMS freezer
If the next top activity is in cached and frozen mode, WM should raise its priority to unfreeze it. This is done by calling AMS.updateOomAdj that will lower its oom adj. However, WM cannot hold the AMS clock here so the updateOomAdj operation is performed in a separate thread asynchronously. Therefore WM can't guarantee AMS will unfreeze next top activity on time. This race will fail the following binder transactions WM sends to the activity. After this race issue between WM/ATMS and AMS is solved, this workaround can be removed. Bug: 213288355 Test: manual stress test, launching all installed apps in a loop Change-Id: I8ac781ee3faf5711984dab22063083e93217d46e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions