diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2020-07-31 14:38:37 -0700 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2020-08-20 16:40:59 -0700 |
commit | 88786f90f2ba04f87a7bff3b309b582a88ae25c0 (patch) | |
tree | b663c6130daef68e1ae4d7f211aa49c2af6492fa /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a592f49c5bb69464394e76a7e4a2584939681907 (diff) |
Reduce RM createResources lock contention
Reduce lock contention for processes that use
ResourcesManager#createResources on background threads by preloading
the apk assets into a temporary cache while the RM lock is not held.
As a result, multiple threads may be performing I/O opening the same
apk assets since multiple threads could be preloading the same apk
at once.
Bug: 111966000
Test: observe significantly less monitor contention with owner bg
threads calling android.app.ResourcesManager.createResources
Merged-In: Iccf383cb8e1a358af4f71ac242e2216dc5a19ff2
Change-Id: Iccf383cb8e1a358af4f71ac242e2216dc5a19ff2
(cherry picked from commit fb9a011b1db757892c3eae596aecd59cb8fbd604)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions