]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.boringcrypto] runtime/race: move TestRaceIssue5567 from sha1 to crc32
authorRuss Cox <rsc@golang.org>
Thu, 17 Aug 2017 15:29:19 +0000 (11:29 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 17 Aug 2017 18:57:21 +0000 (18:57 +0000)
commite0e2bbdd00966a5fdbae0fc2223651fae735e7e2
treecc473d2639079563b6f2437eb058cf0280dd7bce
parentfe02ba30f13b0316d3d410062b62e8412e20dbfc
[dev.boringcrypto] runtime/race: move TestRaceIssue5567 from sha1 to crc32

If we substitute a SHA1 implementation where the entirety of the
reading of the buffer is done in assembly (or C called from cgo),
then the race detector cannot observe the race.

Change to crc32 with a fake polynomial, in the hope that it will
always be handled by Go code, not optimized assembly or cgo calls.

Change-Id: I34e90b14ede6bc220ef686f6aef16b8e464b5cde
Reviewed-on: https://go-review.googlesource.com/56510
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/runtime/race/testdata/mop_test.go