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

Commit a5ef7d77 authored by Jing Ji's avatar Jing Ji Committed by Gerrit Code Review
Browse files

Merge "[AMS] Fix race condition in ProcessList."

parents 6f7ec05b 9193fa1c
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -577,6 +577,7 @@ class AppErrors {
            mPackageWatchdog.onPackageFailure(r.getPackageListWithVersionCode(),
                    PackageWatchdog.FAILURE_REASON_APP_CRASH);

            synchronized (mService) {
                mService.mProcessList.noteAppKill(r, (crashInfo != null
                          && "Native crash".equals(crashInfo.exceptionClassName))
                          ? ApplicationExitInfo.REASON_CRASH_NATIVE
@@ -584,6 +585,7 @@ class AppErrors {
                          ApplicationExitInfo.SUBREASON_UNKNOWN,
                        "crash");
            }
        }

        final int relaunchReason = r != null
                ? r.getWindowProcessController().computeRelaunchReason() : RELAUNCH_REASON_NONE;