Merge "ActivityManagerService: ensure updateOomAdjLocked gets called early" into pi-dev

am: 3148dbf80d

Change-Id: Ia7902146d83b84c5b22ec21770de359834a4a935
This commit is contained in:
Tim Murray
2018-04-18 12:00:26 -07:00
committed by android-build-merger

View File

@@ -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);