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

Commit e90bb605 authored by Jing Ji's avatar Jing Ji Committed by Automerger Merge Worker
Browse files

Merge "Recheck the condition before really killing" am: f24ac738 am: c2cbdc70 am: 7c944d37

parents fc8a90ef 7c944d37
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -15246,6 +15246,10 @@ public class ActivityManagerService extends IActivityManager.Stub
                            app.processName, app.toShortString(), cpuLimit, app)) {
                    mHandler.post(() -> {
                        synchronized (ActivityManagerService.this) {
                            if (app.getThread() == null
                               || app.mState.getSetProcState() < ActivityManager.PROCESS_STATE_HOME) {
                                   return;
                            }
                            app.killLocked("excessive cpu " + cpuTimeUsed + " during "
                                    + uptimeSince + " dur=" + checkDur + " limit=" + cpuLimit,
                                    ApplicationExitInfo.REASON_EXCESSIVE_RESOURCE_USAGE,
@@ -15271,6 +15275,10 @@ public class ActivityManagerService extends IActivityManager.Stub
                            app.processName, r.toString(), cpuLimit, app)) {
                    mHandler.post(() -> {
                        synchronized (ActivityManagerService.this) {
                            if (app.getThread() == null
                               || app.mState.getSetProcState() < ActivityManager.PROCESS_STATE_HOME) {
                                   return;
                            }
                            mPhantomProcessList.killPhantomProcessGroupLocked(app, r,
                                    ApplicationExitInfo.REASON_EXCESSIVE_RESOURCE_USAGE,
                                    ApplicationExitInfo.SUBREASON_EXCESSIVE_CPU,