summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2022-10-12 07:34:32 -0700
committer Lee Shombert <shombert@google.com> 2022-10-13 11:20:22 -0700
commit423848fe8a358dcf77ba218cf79c1d5c53d33dcd (patch)
treef03b6aaf726258076264d24a5735e8ebd2613f54 /libs/androidfw/StringPool.cpp
parentbb18fbe360f52032f658e65daf753b2d13bcbbf0 (diff)
Fix concurrency issue in PropertyInvalidatedCache
Bug: 253063488 Ensure the global lock is held while fetching the list of active caches. The global lock is necessary while the list is being fetched; it is not necessary while each cache in the list is cleared. Added a new test for PropertyInvalidatedCache.onTrimMemory(). This test will not catch race conditions but does verify that onTrimMemory() behaves as expected. Added an entry to TEST_MAPPING so that the PropertyInvalidatedCache tests run when the source file is modified. Test: atest * FrameworksCoreTests:PropertyInvalidatedCacheTests Change-Id: Ib3ef355c88cb272334ccfc16f922c057828749ce
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions