1
0
mirror of https://github.com/golang/go synced 2024-11-07 12:36:27 -07:00
go/src/internal
Ian Lance Taylor 8b859be9c3 internal/poll: ensure that newPoolPipe doesn't return a nil pointer
The function could occasionally return a nil pointer as a non-nil
interface, confusing the calling code.

Fixes #45520

Change-Id: Ifd35613728efa2cee9903177e85d369155074804
Reviewed-on: https://go-review.googlesource.com/c/go/+/309429
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Andy Pan <panjf2000@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-04-12 17:32:47 +00:00
..
abi all: explode GOEXPERIMENT=regabi into 5 sub-experiments 2021-03-18 16:51:27 +00:00
bytealg all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
cfg cmd: move GOEXPERIMENT knob from make.bash to cmd/go 2021-03-11 21:43:04 +00:00
cpu all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
execabs all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
fmtsort internal/fmtsort: sort the unsafe pointers in map 2020-11-19 02:17:10 +00:00
goexperiment runtime,cmd/link: include GOEXPERIMENTs in runtime.Version(), "go version X" 2021-04-08 02:17:22 +00:00
goroot all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
goversion internal/goversion: update Version to 1.17 2021-02-16 21:07:42 +00:00
itoa all: add internal/itoa package 2021-03-14 17:56:50 +00:00
lazyregexp
lazytemplate
nettrace
obscuretestdata all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
oserror
poll internal/poll: ensure that newPoolPipe doesn't return a nil pointer 2021-04-12 17:32:47 +00:00
profile all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
race all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
reflectlite Revert "cmd/compile: split exported/non-exported methods for interface type" 2020-10-28 17:10:08 +00:00
singleflight
syscall crypto/rand, internal/syscall/unix: add support for getentropy syscall on darwin 2021-03-17 22:14:28 +00:00
sysinfo testing: print cpu type as label for benchmarks 2020-10-20 21:30:18 +00:00
testenv all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
testlog
trace all: update to use os.ReadDir where appropriate 2020-12-09 19:12:27 +00:00
unsafeheader
xcoff