diff options
| author | 2024-11-06 08:46:33 -0800 | |
|---|---|---|
| committer | 2024-11-07 16:57:46 -0800 | |
| commit | 05a4d00634bb15a7e9cf9fbe0fc6ad90424165d7 (patch) | |
| tree | 82242cda6cbe58bd28ae5c6768dfae28e4ea293b /libs/androidfw/StringPool.cpp | |
| parent | 912193baf070076e357a983b1811fd019d409c6d (diff) | |
Separate caches for separate UIDs
A cache instance maintains one hashmap for each UID making the binder
call. The UID is give by Binder.getCallingUid(). This isolates the
UIDs but will likely reduce cache efficacy. Per-UID statistics are
collected.
An individual cache may choose to keep all UID information in a single
hashmap. This is controlled by a configuration flag to the cache
constructor. This is also the legacy behavior.
Isolation by UID is flag-guarded. Statistics collection is guarded by
a separate flag, as statistics turn out to be expensive.
This CL reverts an initial update to the default bypass() method,
since the check for cross-uid cache access is now part of the cache
infrastructure.
Flag: android.app.pic_isolate_cache_by_uid
Flag: android.app.pic_isolated_cache_statistics
Bug: 373752556
Test: atest
* FrameworksCoreTests:PropertyInvalidatedCacheTests
* FrameworksCoreTests:IpcDataCacheTest
* CtsOsTestCases:IpcDataCacheTest
* ServiceBluetoothTests
Change-Id: I6f3a9df55c820518739814c958a019b04897b42d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions