]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
runtime: Disable memory profiling in gc_test.
authorIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 18:40:14 +0000 (18:40 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Fri, 20 Apr 2012 18:40:14 +0000 (18:40 +0000)
From-SVN: r186631

libgo/go/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