summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRhed Jao <rhedjao@google.com>2021-04-22 19:03:21 +0800
committerRhed Jao <rhedjao@google.com>2021-04-26 12:49:20 +0800
commit129aa44896dfe7dc5c26866aa8aace019d6a3b9c (patch)
tree4b17ed2ce3bcb4c6ef2973d96d6bc192834dc348 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent01f110bfd4663e3bf07fcbed93f0b573ba1efb62 (diff)
Add a synchronized lock into the SplitDependencyLoaderImpl
- There's a potential race condition going on when components from the isolated split are creating the split class loader. Add a synchronized lock for the array of cached class loaders and resource paths to prevent the race. - Remove the synchronized class reference of LoadedApk. Using an explicit mLock object to synchronize the #createOrUpdateClassLoaderLocked() and cached split class loader instead. Bug: 172602571 Test: atest IsolatedSplitsTests Test: atest ClassloaderSplitsTest Test: atest SplitTests Change-Id: Ifb77d067ddf06b5192d7ce9d4e78958b56faac7c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions