diff options
author | 2021-01-05 20:12:54 +0000 | |
---|---|---|
committer | 2021-01-05 20:12:54 +0000 | |
commit | 655f6cdce6f0aec2964ab265e3cee83b035988b8 (patch) | |
tree | 46ac6b65f9fa19fd3065e720c81d11fffa75e869 | |
parent | 6f0fe217c2c6df0676b3bad827962b1d86e25947 (diff) | |
parent | 9209ce0c1930184f2350adc776e7a537beb0cd6c (diff) |
Merge "TransactionTooLargeException: doc clarification" am: e51328b36c am: db1696ee21 am: 9209ce0c19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537983
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id6a91b53a5c720298fcba165e81c12685d4f654e
-rw-r--r-- | core/java/android/os/TransactionTooLargeException.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/os/TransactionTooLargeException.java b/core/java/android/os/TransactionTooLargeException.java index 10abf26420f1..4d5b2a10f3fe 100644 --- a/core/java/android/os/TransactionTooLargeException.java +++ b/core/java/android/os/TransactionTooLargeException.java @@ -23,9 +23,11 @@ import android.os.RemoteException; * During a remote procedure call, the arguments and the return value of the call * are transferred as {@link Parcel} objects stored in the Binder transaction buffer. * If the arguments or the return value are too large to fit in the transaction buffer, - * then the call will fail and {@link TransactionTooLargeException} will be thrown. + * then the call will fail. {@link TransactionTooLargeException} is thrown as a + * heuristic when a transaction is large, and it fails, since these are the transactions + * which are most likely to overfill the transaction buffer. * </p><p> - * The Binder transaction buffer has a limited fixed size, currently 1Mb, which + * The Binder transaction buffer has a limited fixed size, currently 1MB, which * is shared by all transactions in progress for the process. Consequently this * exception can be thrown when there are many transactions in progress even when * most of the individual transactions are of moderate size. |