]> Cypherpunks.ru repositories - gostls13.git/commit
runtime/cgo: Add initial NetBSD Thread Sanitizer support
authorKamil Rytarowski <krytarowski@users.noreply.github.com>
Sat, 30 Jun 2018 23:29:41 +0000 (23:29 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 Jul 2018 23:14:31 +0000 (23:14 +0000)
commitf5921d48f1f98a4803b1b9c112cab501bfb1713b
tree46973d63da8ade29845a167bd661d64d84958a0f
parent9776d025b3375f35920707757d9f5a450195c69f
runtime/cgo: Add initial NetBSD Thread Sanitizer support

Recognize NetBSD in:
 - go/internal/work/init.go
 - race.bash
 - runtime/race/race.go

Add __ps_strings symbol in runtime/cgo/netbsd.go as this is
used internally in the TSan library for NetBSD and used for
ReExec().

Tested on NetBSD/amd64 v. 8.99.12.

Around 98% tests are passing for the ./race.bash target.

Updates #19273

Change-Id: Ic0e48d2fb159a7868aab5e17156eeaca1225e513
GitHub-Last-Rev: d6e082707b9b18df1fe63f723666f4d2eb5e6cfe
GitHub-Pull-Request: golang/go#24322
Reviewed-on: https://go-review.googlesource.com/99835
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/work/init.go
src/race.bash
src/runtime/cgo/netbsd.go
src/runtime/race/race.go