From 244706bd0f6d190559073141c378c874636e4341 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 20 Apr 2012 11:36:06 -0700 Subject: [PATCH] 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 --- src/pkg/runtime/gc_test.go | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.48.1