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

Skip to content
Commit 99e5e6e7 authored by Christopher Lais's avatar Christopher Lais Committed by Steve Kondik
Browse files

Avoid deadlocks updating WakeLock status in AM



The ActivityManagerService can acquire or release wake locks with the
ActivityManagerService locked.  Now that the PowerManagerService
notifies it of wakelocks, this can cause a deadlock.

This patch removes the immediate oomAdj update, to avoid needing to
lock ActivityManagerService while being notified of WakeLock status.

This may cause delays in updating the oomAdj value, but should be
limited to leaving an app marked foreground longer than it should be.

Signed-off-by: default avatarChristopher Lais <chris+android@zenthought.org>
parent 9e0e0f11
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment