go/src/internal
Keith Randall 579c69ac1c internal/fmtsort: don't out-of-bounds panic if there's a race condition
Raising an out-of-bounds panic is confusing. There's no indication
that the underlying problem is a race.

The runtime already does a pretty good job of detecting this kind of
race (modification while iterating). We might as well just reorganize
a bit to avoid the out-of-bounds panic.

Fixes #33275

Change-Id: Icdd337ad2eb3c84f999db0850ec1d2ff2c146b6e
Reviewed-on: https://go-review.googlesource.com/c/go/+/191197
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
2019-08-30 05:41:23 +00:00
..
bytealg bytes, internal/bytealg: simplify Equal 2019-04-24 00:56:36 +00:00
cfg cmd/go: add go command known variables to test cache hash 2019-07-15 16:28:58 +00:00
cpu internal/cpu: add detection for the new ECDSA and EDDSA capabilities on s390x 2019-04-30 23:31:26 +00:00
fmtsort internal/fmtsort: don't out-of-bounds panic if there's a race condition 2019-08-30 05:41:23 +00:00
goroot all: use "reports whether" consistently instead of "returns whether" 2018-12-02 15:12:26 +00:00
goversion internal/goversion: add new package, move Go 1.x constant there out of go/build 2019-04-19 18:04:35 +00:00
lazyregexp internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
lazytemplate internal/lazytemplate: add a lazy template wrapper 2019-02-27 23:49:01 +00:00
nettrace
oserror all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
poll all: remove os.ErrTimeout 2019-08-02 17:57:18 +00:00
race
reflectlite reflect: optimize directlyAssignable to avoid rtype.Name call 2019-08-27 16:44:22 +00:00
singleflight
syscall os: pass correct environment when creating Windows processes 2019-05-16 10:24:10 +00:00
testenv cmd/go: add go command known variables to test cache hash 2019-07-15 16:28:58 +00:00
testlog
trace all: shorten some tests 2019-05-22 12:54:00 +00:00
xcoff all: simplify code using "gofmt -s -w" 2019-05-06 22:19:22 +00:00