]> Cypherpunks repositories - gostls13.git/commit
sync/atomic: fix TestSwapPointer test
authorKeith Randall <khr@golang.org>
Wed, 1 Apr 2020 23:34:50 +0000 (16:34 -0700)
committerKeith Randall <khr@golang.org>
Thu, 2 Apr 2020 03:47:13 +0000 (03:47 +0000)
commit95773ab9b053edc43ba07a182f3d5e0e29775a45
treee355b85fd703afaa3bf5571ca8d41a099aeb68fe
parent2681efaf0e0457ef7f4246033fe0e97e8d352172
sync/atomic: fix TestSwapPointer test

It plays way too loose with unsafe.Pointer rules.
It runs afoul of the checkptr rules, so some race detector builds
were failing.

Fixes #38210

Change-Id: I5e1c78201d06295524fdedb3fe5b49d61446f443
Reviewed-on: https://go-review.googlesource.com/c/go/+/226880
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/sync/atomic/atomic_test.go