1
0
mirror of https://github.com/golang/go synced 2024-09-23 11:20:17 -06:00
go/misc
Cherry Mui 65701ad2b4 [release-branch.go1.17] misc/cgo/testsanitizers: use buffered channel in tsan12.go
os/signal.Notify requires that "the caller must ensure that c has
sufficient buffer space to keep up with the expected signal rate"
as it does a nonblocking send when it receives a signal. The test
currently using a unbuffered channel, which means it may miss the
signal if the signal arrives before the channel receive operation.

Fixes #53042.
Updates #52998.

Change-Id: Icdcab9396d735506480ef880fb45a4669fa7cc8f
Reviewed-on: https://go-review.googlesource.com/c/go/+/407888
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
(cherry picked from commit 62e1302267)
Reviewed-on: https://go-review.googlesource.com/c/go/+/408115
2022-05-25 19:25:04 +00:00
..
android all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
arm
cgo [release-branch.go1.17] misc/cgo/testsanitizers: use buffered channel in tsan12.go 2022-05-25 19:25:04 +00:00
chrome/gophertool docs: fix case of GitHub 2021-03-05 02:35:21 +00:00
ios all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
linkcheck all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
reboot all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
swig
trace all: use HTML5 br tags 2021-03-13 03:38:42 +00:00
wasm [release-branch.go1.17] cmd/link: increase reserved space for passing env on wasm 2021-10-28 18:01:34 +00:00
editors
go.mod