mirror of
https://github.com/golang/go
synced 2024-11-26 01:07:57 -07:00
test: use correct value in error message in init1.go
Print numGC followed by numGC1, rather than printing numGC twice. Change-Id: I8e7144b6a11d4ae9be0d82d88b86fed04b906e2f Reviewed-on: https://go-review.googlesource.com/22087 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
02b8e6978a
commit
24bd465bca
@ -40,7 +40,7 @@ func init() {
|
||||
sys1, numGC1 := memstats.Sys, memstats.NumGC
|
||||
if sys1-sys >= N*MB || numGC1 == numGC {
|
||||
println("allocated 1000 chunks of", MB, "and used ", sys1-sys, "memory")
|
||||
println("numGC went", numGC, "to", numGC)
|
||||
println("numGC went", numGC, "to", numGC1)
|
||||
panic("init1")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user