runtime: slice capacity do not reduce #16995
What version of Go are you using (
It is true that
That won't deallocate the queue entry itself, but it will allow what it pointed to to be garbage collected.
This is a fundamental property of slices. There's no way to deallocate the entry itself. You can copy to another slice if you care about the space.
Closing this as not actionable.