]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: randomize compilation order when race-enabled
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 27 Apr 2017 14:37:40 +0000 (07:37 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 27 Apr 2017 19:27:22 +0000 (19:27 +0000)
commitf5c878e0300829bf47b9be5cae711339c29e522a
tree71bd25f447fa24ee1f1364e9b50b9f96dd4d7133
parent26e126d6e6a06a589fdcab2fecb4d555e38e4826
cmd/compile: randomize compilation order when race-enabled

There's been one failure on the race builder so far,
before we started sorting functions by length.

The race detector can only detect actual races,
and ordering functions by length might reduce the odds
of catching some kinds of races. Give it more to chew on.

Updates #20144

Change-Id: I0206ac182cb98b70a729dea9703ecb0fef54d2d0
Reviewed-on: https://go-review.googlesource.com/41973
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/norace.go [new file with mode: 0644]
src/cmd/compile/internal/gc/pgen.go
src/cmd/compile/internal/gc/race.go [new file with mode: 0644]