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

Commit 528b18b3 authored by Tim Murray's avatar Tim Murray
Browse files

ActivityManagerService: ensure updateOomAdjLocked gets called early

If updateOomAdjLocked isn't called before android.bg is put into the bg
cpuset, then updateOomAdjLocked will put android.bg in the fg cpuset.

Test: boots
Bug: 77908520
Change-Id: If88a6a59f4ca4fe7d1c6ed149f59282aad26600a
parent e010b418
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3161,6 +3161,8 @@ public class ActivityManagerService extends IActivityManager.Stub
        // bind background thread to little cores
        // this is expected to fail inside of framework tests because apps can't touch cpusets directly
        // make sure we've already adjusted system_server's internal view of itself first
        updateOomAdjLocked();
        try {
            Process.setThreadGroupAndCpuset(BackgroundThread.get().getThreadId(),
                    Process.THREAD_GROUP_BG_NONINTERACTIVE);