From 3612487d618df84530645c45c7c3979383b39c12 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Thu, 8 Oct 2009 16:22:03 -0700 Subject: [PATCH] Fix issue #2174566: HOT STABILITY: NPE in activity manager - Don't crash if the service's app process doesn't have a thread (this can happen if we are currently starting the process and then try to start the service again). - Be more robust about deciding to start a service's process: try each time it is started; the startProcess call will take care of ignoring it if the process is already started. - Fix some issues where we would leave dead processes on the low memory list. Change-Id: I490e01ba7b45adc191bab7ace377b6873e284897 --- .../server/am/ActivityManagerService.java | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index c611795f79a27..3460d3ac98a30 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java @@ -4556,7 +4556,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen long now = SystemClock.uptimeMillis(); for (i=0; i