diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-10-24 14:47:44 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-10-27 13:58:02 -0700 |
commit | 668894d7b584b40ddb46e9e2e2ffa637f4d732e5 (patch) | |
tree | 6c97d325215c8462f375f142d1e91099cc4edb68 /libgo/go/runtime/proc_test.go | |
parent | 2b3e722a3ca1b9dcfff1c016e651d0d681de1af0 (diff) | |
download | gcc-668894d7b584b40ddb46e9e2e2ffa637f4d732e5.tar.gz |
libgo: update to Go 1.15.3 release
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/265717
Diffstat (limited to 'libgo/go/runtime/proc_test.go')
-rw-r--r-- | libgo/go/runtime/proc_test.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libgo/go/runtime/proc_test.go b/libgo/go/runtime/proc_test.go index b9828d98183..a8f0dc39c0c 100644 --- a/libgo/go/runtime/proc_test.go +++ b/libgo/go/runtime/proc_test.go @@ -529,9 +529,17 @@ func BenchmarkPingPongHog(b *testing.B) { <-done } +var padData [128]uint64 + func stackGrowthRecursive(i int) { var pad [128]uint64 - if i != 0 && pad[0] == 0 { + pad = padData + for j := range pad { + if pad[j] != 0 { + return + } + } + if i != 0 { stackGrowthRecursive(i - 1) } } |