summaryrefslogtreecommitdiff
path: root/libs/battery/LongArrayMultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Cody Northrop <cnorthrop@google.com> 2024-11-21 18:07:59 -0700
committer Cody Northrop <cnorthrop@google.com> 2024-11-28 17:00:06 -0700
commitb7f342a05123a5ff7a1957859710d106d38b347e (patch)
tree76c41fc8232c6a2cb83f7696b2c274b2628abd26 /libs/battery/LongArrayMultiStateCounterTest.cpp
parent99e8f2c5a719e463093e280a283963e26a2a222a (diff)
EGL Multifile Blobcache: Handle lost cache
During execution, if the app's cache is cleared from outside our control, two issues occur: * New entries won't persist to disk because the multifile directory is missing. * applyLRU will abort eviction, allowing entries beyond the limits. To address this, this CL: * Adds missing directory detection to our deferred write thread which then attempts to recreate it and continue. * Updates eviction to issue a warning rather than abort so it can update tracking and continue. For missing entries, the app will get hits from hotcache, but anything beyond that will become a miss. Additional tests: * RecoverFromLostCache * EvictAfterLostCache Based on work by: Igor Nazarov <i.nazarov@samsung.com> Test: libEGL_test, EGL_test, ANGLE trace tests, apps Bug: b/351867582, b/380483358 Flag: com.android.graphics.egl.flags.multifile_blobcache_advanced_usage Change-Id: I13c8cdf58c957163eed4498c0d4be180574bf03e
Diffstat (limited to 'libs/battery/LongArrayMultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions