]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: fix TestGCTestMoveStackOnNextCall flakes
authorAustin Clements <austin@google.com>
Wed, 31 Mar 2021 16:13:58 +0000 (12:13 -0400)
committerAustin Clements <austin@google.com>
Fri, 2 Apr 2021 01:13:58 +0000 (01:13 +0000)
commit41e8a9f1cf78933ebdaf9fa29694df5129f1862c
tree13739640950e334a1842f069dde91fb0a24aaf3c
parent5579ee169f12815660eb9ee66afd5f2abc77864f
runtime: fix TestGCTestMoveStackOnNextCall flakes

gcTestMoveStackOnNextCall can fail to move the stack in very rare
cases if there's an unfortunately timed preemption that clobbers the
stack guard. This won't happen multiple times in quick succession, so
make the test just retry a few times.

Change-Id: I247dc0551514e269e7132cee7945291429b0e865
Reviewed-on: https://go-review.googlesource.com/c/go/+/306671
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/gc_test.go
src/runtime/mgc.go