aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/csv
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-10-22 20:23:49 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-10-22 20:23:49 +0400
commitaf3868f1879c7f8bef1a4ac43cfe1ab1304ad6a4 (patch)
tree9ba4d5f3c32a67f9d5c3634087077a40826bee90 /src/encoding/csv
parent18051c086012e3ea279994e987ffe826308f93df (diff)
downloadgo-af3868f1879c7f8bef1a4ac43cfe1ab1304ad6a4.tar.xz
sync: release Pool memory during second and later GCs
Pool memory was only being released during the first GC after the first Put. Put assumes that p.local != nil means p is on the allPools list. poolCleanup (called during each GC) removed each pool from allPools but did not clear p.local, so each pool was cleared by exactly one GC and then never cleared again. This bug was introduced late in the Go 1.3 release cycle. Fixes #8979. LGTM=rsc R=golang-codereviews, bradfitz, r, rsc CC=golang-codereviews, khr https://golang.org/cl/162980043
Diffstat (limited to 'src/encoding/csv')
0 files changed, 0 insertions, 0 deletions