Merge "ActivityManagerService: ensure updateOomAdjLocked gets called early" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3148dbf80d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user