runtime: Disable memory profiling in gc_test.

From-SVN: r186632
This commit is contained in:
Ian Lance Taylor 2012-04-20 18:40:29 +00:00
parent a21b0e9956
commit 500c188b23
1 changed files with 2 additions and 0 deletions

View 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