1
0
mirror of https://github.com/golang/go synced 2024-11-19 15:44:44 -07:00

sync/atomic: remove references to old atomic pointer hammer tests

The tests were removed in https://golang.org/cl/2311 but some
references to them were missed.

Change-Id: I163e554a0cc99401a012deead8fda813ad74dbfe
Reviewed-on: https://go-review.googlesource.com/58870
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Tom Levy 2017-08-25 17:13:34 +12:00 committed by Ian Lance Taylor
parent 14cb41584d
commit b0ba0b49a0

View File

@ -772,10 +772,8 @@ func init() {
if uintptr(v) != 0 {
// 64-bit system; clear uintptr tests
delete(hammer32, "SwapUintptr")
delete(hammer32, "SwapPointer")
delete(hammer32, "AddUintptr")
delete(hammer32, "CompareAndSwapUintptr")
delete(hammer32, "CompareAndSwapPointer")
}
}
@ -923,10 +921,8 @@ func init() {
if uintptr(v) == 0 {
// 32-bit system; clear uintptr tests
delete(hammer64, "SwapUintptr")
delete(hammer64, "SwapPointer")
delete(hammer64, "AddUintptr")
delete(hammer64, "CompareAndSwapUintptr")
delete(hammer64, "CompareAndSwapPointer")
}
}