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

Commit bef05673 authored by Narayan Kamath's avatar Narayan Kamath Committed by Android (Google) Code Review
Browse files

Merge "Binder: Don't attempt to catch OutOfMemoryError"

parents 2b2e769d 2f6af94c
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -687,13 +687,6 @@ public class Binder implements IBinder {
                reply.writeException(e);
            }
            res = true;
        } catch (OutOfMemoryError e) {
            // Unconditionally log this, since this is generally unrecoverable.
            Log.e(TAG, "Caught an OutOfMemoryError from the binder stub implementation.", e);
            RuntimeException re = new RuntimeException("Out of memory", e);
            reply.setDataPosition(0);
            reply.writeException(re);
            res = true;
        } finally {
            if (tracingEnabled) {
                Trace.traceEnd(Trace.TRACE_TAG_ALWAYS);