]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: add TSAN annotations for C sigaction call
authorBryan C. Mills <bcmills@google.com>
Thu, 25 May 2017 18:30:23 +0000 (14:30 -0400)
committerBryan Mills <bcmills@google.com>
Fri, 26 May 2017 16:34:43 +0000 (16:34 +0000)
commita8dd20d389a1364059c36202da6a2a655677f7d8
treecc98349203ccba4ea79599675ad3a9940413014e
parentc31231ccab371b31f5563a91e68720657799fe70
runtime/cgo: add TSAN annotations for C sigaction call

This avoids false-positive TSAN reports when using the C sigaction
function to read handlers registered by the Go runtime.

(Unfortunately, I can't seem to coax the runtime into reproducing the
failure in a small unit-test.)

Change-Id: I744279a163708e24b1fbe296ca691935c394b5f3
Reviewed-on: https://go-review.googlesource.com/44270
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/runtime/cgo/gcc_sigaction.c