]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: enable race detector on openbsd/amd64
authorJoel Sing <joel@sing.id.au>
Mon, 7 Dec 2020 17:14:34 +0000 (04:14 +1100)
committerJoel Sing <joel@sing.id.au>
Tue, 23 Feb 2021 12:14:32 +0000 (12:14 +0000)
commitb3b65f21762fad1ec37bdb0cd47f79a53814bb16
treea6645ae84a2d94501f72d1896fa8fc9a1f1c4c35
parenta78b0e67211034743a1f03645312aed35e5c5ba2
runtime: enable race detector on openbsd/amd64

Now that this commit[1] has landed in LLVM the .syso file can be generated for
OpenBSD.

With the changes to src/runtime running the sample race[2] detects the data
race as expected.

Based on golang/go#39464 (https://go-review.googlesource.com/c/go/+/237057) from
Aaron Bieber <deftly@gmail.com>, however the race_openbsd_amd64.syso file has
been built on OpenBSD 6.4 and necessary changes added to race.bash.

[1] https://github.com/llvm/llvm-project/commit/fcf6ae2f070eba73074b6ec8d8281e54d29dbeeb
[2] https://golang.org/doc/articles/race_detector.html

Change-Id: Ic2479ccfa91d6b2cb4585346a11d813d96450f68
Reviewed-on: https://go-review.googlesource.com/c/go/+/275892
Trust: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/dist/test.go
src/cmd/internal/sys/supported.go
src/race.bash
src/runtime/race/README
src/runtime/race/race.go
src/runtime/race/race_openbsd_amd64.syso [new file with mode: 0644]