RESTRICT AUTOMERGE: Autocork package invalidations
Bug: 140788621 Test: m; strace -s512 -f -p 1 2>&1 | grep 'cache_key' Change-Id: Iceaabee5ea8eac42934c1cc4914cdf43d2f11f58
This commit is contained in:
@@ -8036,13 +8036,16 @@ public abstract class PackageManager {
|
||||
sApplicationInfoCache.disableLocal();
|
||||
}
|
||||
|
||||
private static final PropertyInvalidatedCache.AutoCorker sCacheAutoCorker =
|
||||
new PropertyInvalidatedCache.AutoCorker(PermissionManager.CACHE_KEY_PACKAGE_INFO);
|
||||
|
||||
/**
|
||||
* Invalidate caches of package and permission information system-wide.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public static void invalidatePackageInfoCache() {
|
||||
PropertyInvalidatedCache.invalidateCache(PermissionManager.CACHE_KEY_PACKAGE_INFO);
|
||||
sCacheAutoCorker.autoCork();
|
||||
}
|
||||
|
||||
// Some of the flags don't affect the query result, but let's be conservative and cache
|
||||
|
||||
Reference in New Issue
Block a user