]> Cypherpunks.ru repositories - gostls13.git/commit
testing: remove data races so that parallel benchmarks can safely call .Fatal* and...
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Tue, 13 Apr 2021 00:34:04 +0000 (18:34 -0600)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Mon, 19 Apr 2021 22:06:05 +0000 (22:06 +0000)
commitbc5de81e70f9572d7b1d63040c95b999dac57f50
tree69d188c71e9ba5ef51389aeceaa3698e8454b2ee
parente97d8eb027c0067f757860b6f766644de15941f2
testing: remove data races so that parallel benchmarks can safely call .Fatal* and .Skip*

Protects the usages of (*common).finished with locks
to prevent data races, thus allowing benchmarks to safely invoke
.Fatal* and .Skip* concurrently.

Fixes #45526

Change-Id: I2b4846f525c426d6c7d3418f8f6c86446adbf986
Reviewed-on: https://go-review.googlesource.com/c/go/+/309572
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Tobias Klauser <tobias.klauser@gmail.com>
src/testing/benchmark.go
src/testing/benchmark_test.go
src/testing/testing.go