]> Cypherpunks repositories - gostls13.git/commit
strconv: run garbage collection before counting allocations in test
authorRuss Cox <rsc@golang.org>
Mon, 20 Feb 2012 03:13:04 +0000 (22:13 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 20 Feb 2012 03:13:04 +0000 (22:13 -0500)
commita53317668a9b29cf4633e67d1d83947eee92c951
treebca4213027699497640eb305615258422b304380
parent9c9b96f028bd354f3b2e0869960300fe3936a54d
strconv: run garbage collection before counting allocations in test

My theory is that the call to f() allocates, which triggers
a garbage collection, which itself may do some allocation,
which is being counted.  Running a garbage collection
before starting the test should avoid this problem.

Fixes #2894 (I hope).

R=golang-dev, bradfitz, nigeltao
CC=golang-dev
https://golang.org/cl/5685046
src/pkg/strconv/itoa_test.go