We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discovered with experimental support for detecting races between atomic and non-atomic accesses: WARNING: DATA RACE Read by goroutine 20: sync/atomic_test.hammerCompareAndSwapInt64() src/pkg/sync/atomic/atomic_test.go:1042 +0x51 sync/atomic_test.func·005() src/pkg/sync/atomic/atomic_test.go:1111 +0x114 Previous write by goroutine 19: sync/atomic.CompareAndSwapInt64() src/pkg/runtime/race_amd64.s:285 +0xa sync/atomic_test.hammerCompareAndSwapInt64() src/pkg/sync/atomic/atomic_test.go:1043 +0x6e sync/atomic_test.func·005() src/pkg/sync/atomic/atomic_test.go:1111 +0x114 Goroutine 20 (running) created at: sync/atomic_test.TestHammer64() src/pkg/sync/atomic/atomic_test.go:1112 +0x43d testing.tRunner() src/pkg/testing/testing.go:427 +0x10b Goroutine 19 (running) created at: sync/atomic_test.TestHammer64() src/pkg/sync/atomic/atomic_test.go:1112 +0x43d testing.tRunner() src/pkg/testing/testing.go:427 +0x10b
The text was updated successfully, but these errors were encountered:
Comment 1:
CL https://golang.org/cl/111320044 mentions this issue.
Sorry, something went wrong.
Comment 2:
This issue was closed by revision 1a116c7.
Status changed to Fixed.
sync/atomic: fix data races in tests
9951ecf
Fixes golang#8389. LGTM=r R=golang-codereviews, r CC=golang-codereviews https://golang.org/cl/111320044
7a54d02
No branches or pull requests
The text was updated successfully, but these errors were encountered: