diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-11-28 16:22:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-28 16:22:52 -0800 |
commit | 794559ab8d0bc18778e9c9cd4a57b15922f9d84a (patch) | |
tree | 23fa54de3b77d6de6bd5fa29999e54b28b3c0672 /src/core/lib/transport | |
parent | af67526882f6ef6b32d300391ca3cc086c7c75c0 (diff) | |
parent | 836e143093d29403933e9cf05fa0e82752a3f194 (diff) |
Merge pull request #17313 from yashykt/padstreamsize
Stream size needs to be rounded up to alignment
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r-- | src/core/lib/transport/transport.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport.cc b/src/core/lib/transport/transport.cc index cbdb77c844..b32f9c6ec1 100644 --- a/src/core/lib/transport/transport.cc +++ b/src/core/lib/transport/transport.cc @@ -27,6 +27,7 @@ #include <grpc/support/log.h> #include <grpc/support/sync.h> +#include "src/core/lib/gpr/alloc.h" #include "src/core/lib/gpr/string.h" #include "src/core/lib/iomgr/executor.h" #include "src/core/lib/slice/slice_internal.h" @@ -149,7 +150,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) { |