summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Winson Chiu <chiuwinson@google.com> 2022-06-15 15:40:08 +0000
committer Winson Chiu <chiuwinson@google.com> 2022-06-15 22:21:17 +0000
commite574a37db187958d57ca2733f40da840ea472a45 (patch)
treecd037e5b014d4607f1a5c69840fe65fd2fbd6f03 /api/api.go
parent565f6d457fa66ef3235cd78bbed1d37b2589a5f1 (diff)
Fix high traffic PMS lockless methods
The notifyPackageUse method is called so many times that it is causing a spike in snapshot invalidations. This reverts to a (broken) S state where the code takes the lock and updates the time value, but doesn't actually invalidate the snapshot, preventing the re-generation. Also fixes a check in grantImplicitAccess that was calling onChanged() even though nothing changed, which was the other significant method. Test: manual, run profiling steps in bug on pre-change and post-change Test: atest AppsFilterImplTest Bug: 236021119 Change-Id: I20b1bb1d8b4f3df09c901f39db8462ab1a67607d
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions