1
0
mirror of https://github.com/golang/go synced 2024-11-20 06:44:40 -07:00
go/src/runtime/race
Dmitry Vyukov c61d86af72 os: give race detector chance to override Exit(0)
Racy tests do not fail currently, they do os.Exit(0).
So if you run go test without -v, you won't even notice.
This was probably introduced with testing.TestMain.

Racy programs do not have the right to finish successfully.

Change-Id: Id133d7424f03d90d438bc3478528683dd02b8846
Reviewed-on: https://go-review.googlesource.com/4371
Reviewed-by: Russ Cox <rsc@golang.org>
2015-03-28 12:42:37 +00:00
..
testdata runtime: fix race instrumentation of append 2015-02-12 08:51:49 +00:00
doc.go
output_test.go os: give race detector chance to override Exit(0) 2015-03-28 12:42:37 +00:00
race_darwin_amd64.syso runtime/race: update race runtime to rev 229396 2015-02-20 18:06:15 +00:00
race_freebsd_amd64.syso runtime/race: update race runtime to rev 229396 2015-02-20 18:06:15 +00:00
race_linux_amd64.syso runtime/race: update race runtime to rev 229396 2015-02-20 18:06:15 +00:00
race_test.go runtime/race: fix test in preparation for new race runtime 2015-02-13 15:55:09 +00:00
race_unix_test.go
race_windows_amd64.syso runtime/race: update race runtime to rev 229396 2015-02-20 18:06:15 +00:00
race.go
README runtime/race: update race runtime to rev 229396 2015-02-20 18:06:15 +00:00

runtime/race package contains the data race detector runtime library.
It is based on ThreadSanitizer race detector, that is currently a part of
the LLVM project.

To update the .syso files you need to:
$ svn co http://llvm.org/svn/llvm-project/compiler-rt/trunk
$ cd compiler-rt/lib/tsan/go
$ ./buildgo.sh

Tested with gcc 4.6.1 and 4.7.0.  On Windows it's built with 64-bit MinGW.

Current runtime is built on rev 229396.