]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: make compatible with race detector
authorRuss Cox <rsc@golang.org>
Wed, 22 Jul 2015 19:31:54 +0000 (15:31 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 22 Jul 2015 20:28:47 +0000 (20:28 +0000)
commit75d779566b75fc1a09239bfbca40b6dba42000fd
tree0f3a523e92a3e8b67ed61b32a0bbfdca039a2747
parent0acecb7164133ee235809d642711b46b340221cb
runtime/cgo: make compatible with race detector

Some routines run without and m or g and cannot invoke the
race detector runtime. They must be opaque to the runtime.
That used to be true because they were written in C.
Now that they are written in Go, disable the race detector
annotations for those functions explicitly.

Add test.

Fixes #10874.

Change-Id: Ia8cc28d51e7051528f9f9594b75634e6bb66a785
Reviewed-on: https://go-review.googlesource.com/12534
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/out.go
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/go.y
src/cmd/compile/internal/gc/lex.go
src/cmd/compile/internal/gc/racewalk.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/y.go
src/cmd/dist/test.go
src/runtime/cgo/callbacks.go
src/runtime/sigqueue.go