commit | 8a3e7201b5a58c1bf09a9e2ffc014afcf3a2cdcc | [log] [tgz] |
---|---|---|
author | Christopher Tate <ctate@google.com> | Fri Dec 11 10:01:20 2020 -0800 |
committer | Christopher Tate <ctate@google.com> | Mon Feb 22 17:47:16 2021 -0800 |
tree | fe8699e7dd0a258382dd51a8fab6441e56c396b7 | |
parent | 087715166a3ff1ce5a21fd926395ff42b47e4322 [diff] |
Make isAppBad() lock-free We trade off increased cost of (rare) mutations of the set of "bad" apps in order to make the core lookup "is this specific app bad?" lock-free. Locking discipline turned out to be a dominant cost in a very hot code path within the running system, even uncontended. Bug: 175339368 Bug: 163297662 Test: atest ActivityManagerServiceTest Change-Id: I8803a177d46b01b86897f1e8d0966eb2452849fd Merged-In: I8803a177d46b01b86897f1e8d0966eb2452849fd