]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: disable memory profiler in gc_test
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Apr 2012 18:36:06 +0000 (11:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Apr 2012 18:36:06 +0000 (11:36 -0700)
This lets the test pass on PPC64 GNU/Linux, which uses a much
larger page size and thus uses more memory to hold blocks
allocated for memory profiling.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6048054

src/pkg/runtime/gc_test.go

index 65894a6fd01531695c2435efe9064b406d64bbbb..7770e499ad351e1da386312cd365302a11ac6bbf 100644 (file)
@@ -15,6 +15,8 @@ func TestGcSys(t *testing.T) {
        runtime.ReadMemStats(memstats)
        sys := memstats.Sys
 
+       runtime.MemProfileRate = 0 // disable profiler
+
        itercount := 1000000
        if testing.Short() {
                itercount = 100000