1
0
mirror of https://github.com/golang/go synced 2024-10-05 02:21:22 -06:00
go/src/pkg/runtime/race
Rémy Oudompheng ccc61eadd5 runtime: implement range access functions in race detector.
Range access functions are already available in TSan library
but were not yet used.

Time for go test -race -short:

Before:
compress/flate 24.244s
exp/norm       >200s
go/printer     78.268s

After:
compress/flate 17.760s
exp/norm        5.537s
go/printer      5.738s

Fixes #4250.

R=dvyukov, golang-dev, fullung
CC=golang-dev
https://golang.org/cl/7229044
2013-01-30 01:55:02 +01:00
..
testdata cmd/gc: fix race instrumentation of unaddressable arrays. 2012-12-24 12:14:41 +01:00
race_darwin_amd64.syso runtime/race: update runtime to r170112. 2012-12-14 13:23:43 +04:00
race_linux_amd64.syso runtime/race: update linux runtime to r170876. 2012-12-21 19:12:00 +04:00
race_test.go runtime/race: make test driver print compilation errors 2012-12-24 15:33:32 +04:00
race_windows_amd64.syso runtime/race: update runtime to r170112. 2012-12-14 13:23:43 +04:00
race.go runtime: implement range access functions in race detector. 2013-01-30 01:55:02 +01:00
README runtime/race: more precise handling of finalizers 2012-11-14 16:58:10 +04: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.