mirror of
https://github.com/golang/go
synced 2024-11-24 19:30:42 -07:00
runtime: bump gc 'extra bytes' check
(needed for non-zero GOMAXPROCS) R=iant, rsc CC=go.peter.90, golang-dev https://golang.org/cl/5486059
This commit is contained in:
parent
6481e37d28
commit
1e63a4e424
@ -22,7 +22,7 @@ func TestGcSys(t *testing.T) {
|
|||||||
sys = runtime.MemStats.Sys - sys
|
sys = runtime.MemStats.Sys - sys
|
||||||
}
|
}
|
||||||
t.Logf("used %d extra bytes", sys)
|
t.Logf("used %d extra bytes", sys)
|
||||||
if sys > 2<<20 {
|
if sys > 4<<20 {
|
||||||
t.Fatalf("using too much memory: %d bytes", sys)
|
t.Fatalf("using too much memory: %d bytes", sys)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user