Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b8577ee7 authored by T.J. Mercier's avatar T.J. Mercier Committed by Cherrypicker Worker
Browse files

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
parent d66ed242
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment