aboutsummaryrefslogtreecommitdiff
path: root/src/sync/atomic
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/atomic')
-rw-r--r--src/sync/atomic/value_test.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/sync/atomic/value_test.go b/src/sync/atomic/value_test.go
index 721da965e3..b8bc8b8851 100644
--- a/src/sync/atomic/value_test.go
+++ b/src/sync/atomic/value_test.go
@@ -185,7 +185,6 @@ func TestValueSwapConcurrent(t *testing.T) {
n = 1000
}
for i := uint64(0); i < m*n; i += n {
- i := i
g.Add(1)
go func() {
var c uint64
@@ -256,7 +255,6 @@ func TestValueCompareAndSwapConcurrent(t *testing.T) {
n = 100
}
for i := 0; i < m; i++ {
- i := i
w.Add(1)
go func() {
for j := i; j < m*n; runtime.Gosched() {