summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Lee Shombert <shombert@google.com> 2022-10-15 08:54:39 -0700
committer Lee Shombert <shombert@google.com> 2022-12-28 16:43:11 +0000
commit46d6fcab38f6a0517912f846f5f90f46ec00c20d (patch)
tree163d21ffd036683f19d006cd1c6730808483cbb1 /api/api.go
parent933c12efa167afa82d93d5777de7ade447e20308 (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. Test: atest * FrameworksCoreTests:PropertyInvalidatedCacheTests Change-Id: I5022620cd4f2561179af709246a9bf149423143f (cherry picked from commit 803254d0ab3109165ffc1e3f409c07a692a9ac37)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions