]> Cypherpunks repositories - gostls13.git/commit
test: tweak test to avoid unpreemptible loop with gccgo
authorThan McIntosh <thanm@google.com>
Thu, 5 Sep 2019 19:43:32 +0000 (15:43 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 6 Sep 2019 12:15:16 +0000 (12:15 +0000)
commitc7dc5e92ddb7c6d4e71edd7f24f9314e81a8413b
tree9a70fa572e2da250cd48044d55301fe8510b5b61
parentd4a6a2661c726dd2443d7bb65da32a421331e438
test: tweak test to avoid unpreemptible loop with gccgo

This test contains a very tight loop with locking/unlocking that can
wind up as an unpreemptible when compiled with gccgo, depending on
inlining. Tweak the test slightly to avoid this problem.

Change-Id: I155fd2b4bfea961244eb6c6594c24ab03d32d41c
Reviewed-on: https://go-review.googlesource.com/c/go/+/193619
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/test/test.go