diff options
author | 2011-03-07 18:20:23 -0800 | |
---|---|---|
committer | 2011-03-07 18:20:23 -0800 | |
commit | 37e792d53d4b38d1283960d62edcd63ef0a30e5e (patch) | |
tree | 9d53590e2c657fb2afbb72360c095d4e41616ce5 | |
parent | 4bd6ccd25162a7634a90cfde72dcdc7d581d9a88 (diff) | |
parent | db773c557226e8008a1fff7596321a69289c80ba (diff) |
Merge "Fix issue #3515088: Don't be so aggressive trying to reclaim memory" into honeycomb-mr1
-rw-r--r-- | core/java/android/view/ViewRoot.java | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/java/android/view/ViewRoot.java b/core/java/android/view/ViewRoot.java index 546823047b24..11908bb8bcef 100644 --- a/core/java/android/view/ViewRoot.java +++ b/core/java/android/view/ViewRoot.java @@ -1606,13 +1606,9 @@ public final class ViewRoot extends Handler implements ViewParent, return; } catch (IllegalArgumentException e) { Log.e(TAG, "IllegalArgumentException locking surface", e); - try { - if (!sWindowSession.outOfMemory(mWindow)) { - Slog.w(TAG, "No processes killed for memory; killing self"); - Process.killProcess(Process.myPid()); - } - } catch (RemoteException ex) { - } + // Don't assume this is due to out of memory, it could be + // something else, and if it is something else then we could + // kill stuff (or ourself) for no reason. mLayoutRequested = true; // ask wm for a new surface next time. return; } |