OSDN Git Service

runtime: Disable memory profiling in gc_test.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 18:40:29 +0000 (18:40 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Apr 2012 18:40:29 +0000 (18:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@186632 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/go/runtime/gc_test.go

index 65894a6..7770e49 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