diff options
author | Tamir Duberstein <tamird@google.com> | 2021-04-10 00:58:43 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-10 01:00:41 -0700 |
commit | 2fea7d096b6224da50e09fa4bace7f3c203ed074 (patch) | |
tree | 34e3420bf4e5822d55a49cecf6f9092d3b30363c /pkg/cleanup/cleanup_test.go | |
parent | d1edabdca016b9d80295855a3ce6d2816486d65c (diff) |
Don't store accepted endpoints in a channel
Use a linked list with cached length and capacity. The current channel
is already composed with a mutex and condition variable, and is never
used for its channel-like properties. Channels also require eager
allocation equal to their capacity, which a linked list does not.
PiperOrigin-RevId: 367766626
Diffstat (limited to 'pkg/cleanup/cleanup_test.go')
0 files changed, 0 insertions, 0 deletions