summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yurii Zubrytskyi <zyy@google.com> 2022-12-01 00:34:09 -0800
committer Yurii Zubrytskyi <zyy@google.com> 2022-12-01 10:09:48 -0800
commit4b60d29375d3422e4d08382c44b0faa5343f6eda (patch)
tree1a2840f96778de492d31452b923c9e8821eb198f /libs/androidfw/StringPool.cpp
parent3d0a6c17f458e77063c6cf49e0bde2da202abd8d (diff)
Move IO from under the ResourcesManager lock
ApkAssets.isUpToDate() performs IO for many types of assets, and doing it under a highly contended lock may cause visible jank. Given that we don't have to remove the key right at the time of the lookup, it's fine to move the up-to-date check out of the lock - if it's not, the function would replace the outdated asset anyway Bug: 259941466 Test: build + boot Change-Id: I8828deadc82180e93bbd9fc34f80a7bd9411d4ad
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions