diff options
author | Bryan C. Mills <bcmills@google.com> | 2017-01-19 16:09:10 -0500 |
---|---|---|
committer | Bryan Mills <bcmills@google.com> | 2017-03-08 18:58:30 +0000 |
commit | 29edf0f9feb0e7412788a20e7d8d473270cb9342 (patch) | |
tree | 79729212f998917d70ded0c35199096d3e6dd062 /src/runtime/cgo.go | |
parent | d71f36b5aa1eadc6cd86ada2c0d5dd621bd9fd82 (diff) | |
download | go-29edf0f9feb0e7412788a20e7d8d473270cb9342.tar.gz go-29edf0f9feb0e7412788a20e7d8d473270cb9342.zip |
runtime: poll libc to deliver signals under TSAN
fixes #18717
Change-Id: I7244463d2e7489e0b0fe3b74c4b782e71210beb2
Reviewed-on: https://go-review.googlesource.com/35494
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/cgo.go')
-rw-r--r-- | src/runtime/cgo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/cgo.go b/src/runtime/cgo.go index 9cf7b58a2f..16ca004ee0 100644 --- a/src/runtime/cgo.go +++ b/src/runtime/cgo.go @@ -16,6 +16,7 @@ import "unsafe" //go:linkname _cgo_notify_runtime_init_done _cgo_notify_runtime_init_done //go:linkname _cgo_callers _cgo_callers //go:linkname _cgo_set_context_function _cgo_set_context_function +//go:linkname _cgo_yield _cgo_yield var ( _cgo_init unsafe.Pointer @@ -24,6 +25,7 @@ var ( _cgo_notify_runtime_init_done unsafe.Pointer _cgo_callers unsafe.Pointer _cgo_set_context_function unsafe.Pointer + _cgo_yield unsafe.Pointer ) // iscgo is set to true by the runtime/cgo package |