am d34c1495: Merge "Prevent system crash when OOM in Binder thread."
* commit 'd34c1495020e5d72dd18959fb906375dc0874c04': Prevent system crash when OOM in Binder thread.
This commit is contained in:
committed by
Android Git Automerger
commit
74923d3ae4
@@ -324,6 +324,10 @@ public class Binder implements IBinder {
|
||||
} catch (RuntimeException e) {
|
||||
reply.writeException(e);
|
||||
res = true;
|
||||
} catch (OutOfMemoryError e) {
|
||||
RuntimeException re = new RuntimeException("Out of memory", e);
|
||||
reply.writeException(re);
|
||||
res = true;
|
||||
}
|
||||
reply.recycle();
|
||||
data.recycle();
|
||||
|
||||
Reference in New Issue
Block a user