mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: relax TestMemoryLimit on darwin a bit more
Add 8MB more. Covers most of the failures watchflakes has seen. Fixes #73136 Change-Id: I593c599a9519b8b31ed0f401d4157d27ac692587 Reviewed-on: https://go-review.googlesource.com/c/go/+/708617 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
eda2e8c683
commit
6caab99026
1 changed files with 1 additions and 1 deletions
2
src/runtime/testdata/testprog/gc.go
vendored
2
src/runtime/testdata/testprog/gc.go
vendored
|
|
@ -396,7 +396,7 @@ func gcMemoryLimit(gcPercent int) {
|
||||||
// should do considerably better than this bound.
|
// should do considerably better than this bound.
|
||||||
bound := int64(myLimit + 16<<20)
|
bound := int64(myLimit + 16<<20)
|
||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
bound += 16 << 20 // Be more lax on Darwin, see issue 73136.
|
bound += 24 << 20 // Be more lax on Darwin, see issue 73136.
|
||||||
}
|
}
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
for time.Since(start) < 200*time.Millisecond {
|
for time.Since(start) < 200*time.Millisecond {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue