Merge "Skip updating the process group of system_server" into sc-dev
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user