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

Commit db773c55 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #3515088: Don't be so aggressive trying to reclaim memory

Change-Id: I8184306fa8c27a41b8bcfcad8d96985be8f0c9aa
parent b1912259
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -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;
            }