Skip to content

Commit ac8f147

Browse files
PapaCharliepurnesh42Heaswars
committed
mem: use slice capacity instead of length, to determine whether to pool buffers or directly allocate them (grpc#7702)
* Address grpc#7631 by correctly pooling large-capacity buffers As the issue states, `mem.NewBuffer` would not pool buffers with a length below the pooling threshold but whose capacity is actually larger than the pooling threshold. This can lead to buffers being leaked. --------- Co-authored-by: Purnesh Dixit <purneshdixit@google.com> Co-authored-by: Easwar Swaminathan <easwars@google.com>
1 parent 6fd86d3 commit ac8f147

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)