What version of Go are you using (go version)?
Tried both 1.13.0 and 1.12.9.
$ go version
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
In docker image alpine:3.8, build cmd is GOOS=linux GOARCH=amd64 go build on macOS 10.14.6
go env Output
$ go env
What did you do?
Using a sync.Pool to reuse strings.Builder.
https://play.golang.org/p/TkWbxGu4PRJ
I use strings.Builder to build sql, and exec the sql-str every times, but I found that the memory will increase slowly, then I called pprof/heap and found that the strings.(*Builder).WriteString inuse a lot of memory and looks never released.

What did you expect to see?
The memory not increase unexpectedly
What did you see instead?
The memory not increase unexpectedly
Really thanks for help!
What version of Go are you using (
go version)?Tried both 1.13.0 and 1.12.9.
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env)?In docker image
alpine:3.8, build cmd isGOOS=linux GOARCH=amd64 go buildon macOS10.14.6go envOutputWhat did you do?
Using a
sync.Poolto reuse strings.Builder.https://play.golang.org/p/TkWbxGu4PRJ
I use strings.Builder to build sql, and exec the
sql-strevery times, but I found that the memory will increase slowly, then I calledpprof/heapand found that thestrings.(*Builder).WriteStringinuse a lot of memory and looks never released.What did you expect to see?
The memory not increase unexpectedly
What did you see instead?
The memory not increase unexpectedly
Really thanks for help!