aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2018-11-27 19:19:35 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2018-11-27 19:19:35 -0800
commitb87984bace81d70fba1d593634ff5a1da882d26f (patch)
tree529537fbadedf9266a47cfb73a912fea32b00e60 /src/core/lib/transport
parentc5d22df984d1f8f097ff3064338befedbb36a2c4 (diff)
Stream size needs to be rounded up to alignment
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/transport.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport.cc b/src/core/lib/transport/transport.cc
index cbdb77c844..d9b9a97b0a 100644
--- a/src/core/lib/transport/transport.cc
+++ b/src/core/lib/transport/transport.cc
@@ -149,7 +149,7 @@ void grpc_transport_move_stats(grpc_transport_stream_stats* from,
}
size_t grpc_transport_stream_size(grpc_transport* transport) {
- return transport->vtable->sizeof_stream;
+ return GPR_ROUND_UP_TO_ALIGNMENT_SIZE(transport->vtable->sizeof_stream);
}
void grpc_transport_destroy(grpc_transport* transport) {