Commit e5b0bceb authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime/debug: deflake TestFreeOSMemory

This is followup to https://golang.org/cl/7319050/

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/7379043
parent 06a488fa
......@@ -70,12 +70,14 @@ func TestReadGCStats(t *testing.T) {
}
}
var big []byte
var big = make([]byte, 1<<20)
func TestFreeOSMemory(t *testing.T) {
var ms1, ms2 runtime.MemStats
big = make([]byte, 1<<20)
if big == nil {
t.Skip("test is not reliable when run multiple times")
}
big = nil
runtime.GC()
runtime.ReadMemStats(&ms1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment