]> Cypherpunks repositories - gostls13.git/commit
test: Run garbage collector before testing malloc numbers.
authorIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 22:54:16 +0000 (15:54 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 10 Sep 2010 22:54:16 +0000 (15:54 -0700)
commit9d93d57465909d6c7f0f0021d42143cd70a1b4c4
treec6921af3cf5d0b14835c138cc4577735830e6789
parent8e985dcda6c85863dda7b0e65c6f089383ec8f31
test: Run garbage collector before testing malloc numbers.

The gccgo library generates some garbage in the init routines
because it handles interfaces slightly differently.  Since the
test sets MemStats.Alloc to 0, the first time the garbage
collector runs it goes negative and the test fails.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/2110044
test/mallocrep.go