diff options
author | 2022-12-07 21:51:19 -0800 | |
---|---|---|
committer | 2022-12-07 22:08:53 -0800 | |
commit | 0e3443d157b9d18bc1d9d6a26becb1ff930efa0d (patch) | |
tree | 95e66799a526c1baee0c76a9bb71bf164bdab6ea /libs/binder/IPCThreadState.cpp | |
parent | 9c0835a83851d3d841180f4057fd85e65701bae2 (diff) |
Support BR_TRANSACTION_PENDING_FROZEN
When an async binder transaction is sent to a frozen process, the kernel
binder driver returns BR_TRANSACTION_PENDING_FROZEN. This tells the user
space app that pending async binder transaction won't be processed until
the target process is unfrozen at an unspecified time in the future.
Generally all binder transactions to frozen processes should be avoided
to prevent the kernel async binder buffer from running out.
Bug: 253913841
Test: freeze process and check logcat
Change-Id: Ie0191b0b3b6b0a4a8481f27f3b0e64e4c1279cb5
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 77703749a1..c0f3e3060e 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -1017,6 +1017,10 @@ status_t IPCThreadState::waitForResponse(Parcel *reply, status_t *acquireResult) if (!reply && !acquireResult) goto finish; break; + case BR_TRANSACTION_PENDING_FROZEN: + ALOGW("Sending oneway calls to frozen process."); + goto finish; + case BR_DEAD_REPLY: err = DEAD_OBJECT; goto finish; |