Stream size needs to be rounded up to alignment

pull/17313/head
Yash Tibrewal 6 years ago
parent c5d22df984
commit b87984bace
  1. 2
      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) {

Loading…
Cancel
Save