1
0
mirror of https://github.com/golang/go synced 2024-07-05 09:50:19 +00:00

test: raise the allocation threshold for chan/select2.go failure

Updates #5282

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8718045
This commit is contained in:
Carl Shapiro 2013-04-12 15:58:34 -07:00
parent 18ff727487
commit 14cb1a1da9

View File

@ -47,7 +47,7 @@ func main() {
runtime.GC()
runtime.ReadMemStats(memstats)
if memstats.Alloc-alloc > 1e5 {
if memstats.Alloc-alloc > 1.1e5 {
println("BUG: too much memory for 100,000 selects:", memstats.Alloc-alloc)
}
}