diff options
| author | 2023-04-03 20:20:39 +0000 | |
|---|---|---|
| committer | 2023-04-12 16:18:28 +0000 | |
| commit | b8577ee7fcbd8d3aefdde535f2838405bdbd85d2 (patch) | |
| tree | e0e96bfa8c9ec4fbe39942a9353742c4ef42bbee /libs/androidfw/AttributeResolution.cpp | |
| parent | d66ed2420cf22a6fc3149eaa1bfbdc3f45c89397 (diff) | |
Don't wait after SIGKILL when freeze-killing
When freeze-killing (for package force-stops) we attempt to wait until all
processes have 1) Received the kill signal AND 2) have actually exited and been
cleaned up AND 3) the associated cgroup(s) have been removed. The second and
third parts can take a long time, which can lead to lock contention in
ActivityManagerService when many kills are attempted simultaneously. For
freeze-kills with SIGKILL we do not need to wait to prevent app-restart
exploits. Now we send these processes a SIGKILL after freezing, but
do not wait until they are actually dead before returning.
Bug: 274646058
Test: Force-stop of chrome with 15 tabs completes ~500ms faster
Test: Full Play store update causes no ANR
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:6c4c4a5927c5b7519047e7f4a7cad81991e15b85)
Merged-In: Ib4cc2e31190338b565e4a89acce64d9ae52b19c9
Change-Id: Ib4cc2e31190338b565e4a89acce64d9ae52b19c9
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions