Closed this issue 7 years ago · 1 comments
Seeing the code, you are using a map to get sync.Pool according with their size. AFAIK the golang map is not thread safe, or i'm wrong?
map
sync.Pool
Hi @skrater.
That map is read-only, e.g. it is not being changed over time. So that is why it is thread safe.