Merge "Fix IndexOutOfBoundsException in process start timeout" into sc-dev

This commit is contained in:
Jing Ji
2021-02-01 08:56:53 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 1 deletions

View File

@@ -4217,6 +4217,7 @@ public final class ActiveServices {
Slog.w(TAG, "Forcing bringing down service: " + sr);
sr.isolatedProc = null;
mPendingServices.remove(i);
size = mPendingServices.size();
i--;
needOomAdj = true;
bringDownServiceLocked(sr, true);

View File

@@ -643,7 +643,7 @@ class ProcessRecord implements WindowProcessListener {
}
public void makeActive(IApplicationThread _thread, ProcessStatsService tracker) {
mProfile.onProcessActive(thread, tracker);
mProfile.onProcessActive(_thread, tracker);
thread = _thread;
mWindowProcessController.setThread(thread);
}