diff options
author | Rhed Jao <rhedjao@google.com> | 2021-04-22 19:03:21 +0800 |
---|---|---|
committer | Rhed Jao <rhedjao@google.com> | 2021-04-26 12:49:20 +0800 |
commit | 129aa44896dfe7dc5c26866aa8aace019d6a3b9c (patch) | |
tree | 4b17ed2ce3bcb4c6ef2973d96d6bc192834dc348 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 01f110bfd4663e3bf07fcbed93f0b573ba1efb62 (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