Merge "[AMS] Fix race condition in ProcessList." am: a5ef7d7741 am: 7e4801abfb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1956043 Change-Id: Id2ed8e62aa4c773d624fee78846a776b7fd0ea3e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -577,6 +577,7 @@ class AppErrors {
|
|||||||
mPackageWatchdog.onPackageFailure(r.getPackageListWithVersionCode(),
|
mPackageWatchdog.onPackageFailure(r.getPackageListWithVersionCode(),
|
||||||
PackageWatchdog.FAILURE_REASON_APP_CRASH);
|
PackageWatchdog.FAILURE_REASON_APP_CRASH);
|
||||||
|
|
||||||
|
synchronized (mService) {
|
||||||
mService.mProcessList.noteAppKill(r, (crashInfo != null
|
mService.mProcessList.noteAppKill(r, (crashInfo != null
|
||||||
&& "Native crash".equals(crashInfo.exceptionClassName))
|
&& "Native crash".equals(crashInfo.exceptionClassName))
|
||||||
? ApplicationExitInfo.REASON_CRASH_NATIVE
|
? ApplicationExitInfo.REASON_CRASH_NATIVE
|
||||||
@@ -584,6 +585,7 @@ class AppErrors {
|
|||||||
ApplicationExitInfo.SUBREASON_UNKNOWN,
|
ApplicationExitInfo.SUBREASON_UNKNOWN,
|
||||||
"crash");
|
"crash");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
final int relaunchReason = r != null
|
final int relaunchReason = r != null
|
||||||
? r.getWindowProcessController().computeRelaunchReason() : RELAUNCH_REASON_NONE;
|
? r.getWindowProcessController().computeRelaunchReason() : RELAUNCH_REASON_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user