mirror of https://github.com/grpc/grpc-java.git
Send empty shutdown flags to avoid a binder memory leak (#8728)
This commit is contained in:
parent
65c00cf24e
commit
27b03c66a6
|
|
@ -345,6 +345,8 @@ public abstract class BinderTransport
|
||||||
// Ignore.
|
// Ignore.
|
||||||
}
|
}
|
||||||
Parcel parcel = Parcel.obtain();
|
Parcel parcel = Parcel.obtain();
|
||||||
|
// Send empty flags to avoid a memory leak linked to empty parcels (b/207778694).
|
||||||
|
parcel.writeInt(0);
|
||||||
try {
|
try {
|
||||||
outgoingBinder.transact(SHUTDOWN_TRANSPORT, parcel, null, IBinder.FLAG_ONEWAY);
|
outgoingBinder.transact(SHUTDOWN_TRANSPORT, parcel, null, IBinder.FLAG_ONEWAY);
|
||||||
} catch (RemoteException re) {
|
} catch (RemoteException re) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue