From: Ian Lance Taylor Date: Fri, 20 Apr 2012 18:36:06 +0000 (-0700) Subject: runtime: disable memory profiler in gc_test X-Git-Tag: go1.1rc2~3351 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=244706bd0f6d190559073141c378c874636e4341;p=gostls13.git runtime: disable memory profiler in gc_test 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 --- diff --git a/src/pkg/runtime/gc_test.go b/src/pkg/runtime/gc_test.go index 65894a6fd0..7770e499ad 100644 --- a/src/pkg/runtime/gc_test.go +++ b/src/pkg/runtime/gc_test.go @@ -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