Merge "Skip updating the process group of system_server" into sc-dev

This commit is contained in:
Jing Ji
2021-05-12 03:30:00 +00:00
committed by Android (Google) Code Review

View File

@@ -394,6 +394,10 @@ public class OomAdjuster {
mProcessGroupHandler = new Handler(adjusterThread.getLooper(), msg -> {
final int pid = msg.arg1;
final int group = msg.arg2;
if (pid == ActivityManagerService.MY_PID) {
// Skip setting the process group for system_server, keep it as default.
return true;
}
if (Trace.isTagEnabled(Trace.TRACE_TAG_ACTIVITY_MANAGER)) {
Trace.traceBegin(Trace.TRACE_TAG_ACTIVITY_MANAGER, "setProcessGroup "
+ msg.obj + " to " + group);