diff options
| author | Cherry Zhang <cherryyz@google.com> | 2018-02-12 15:27:02 -0500 |
|---|---|---|
| committer | Cherry Zhang <cherryyz@google.com> | 2018-05-03 21:35:01 +0000 |
| commit | 1b6fec862cbe890ef0abea99827a587ffbe2e0f1 (patch) | |
| tree | 89f6499fff153fc963057b04efce44d9c65829ca /src/sync/atomic/export_linux_arm_test.go | |
| parent | 4a1baf8bd11c8804a22aa8364028ce8d81b6e1f3 (diff) | |
| download | go-1b6fec862cbe890ef0abea99827a587ffbe2e0f1.tar.xz | |
sync/atomic: redirect many functions to runtime/internal/atomic
The implementation of atomics are inherently tricky. It would
be good to have them implemented in a single place, instead of
multiple copies.
Mostly a simple redirect.
On 386, some functions in sync/atomic have better implementations,
which are moved to runtime/internal/atomic.
On ARM, some functions in sync/atomic have better implementations.
They are dropped by this CL, but restored with an improved
version in a follow-up CL. On linux/arm, 64-bit CAS kernel helper
is dropped, as we're trying to move away from kernel helpers.
Fixes #23778.
Change-Id: Icb9e1039acc92adbb2a371c34baaf0b79551c3ea
Reviewed-on: https://go-review.googlesource.com/93637
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/sync/atomic/export_linux_arm_test.go')
| -rw-r--r-- | src/sync/atomic/export_linux_arm_test.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/sync/atomic/export_linux_arm_test.go b/src/sync/atomic/export_linux_arm_test.go deleted file mode 100644 index 51f15772be..0000000000 --- a/src/sync/atomic/export_linux_arm_test.go +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package atomic - -var GeneralCAS64 = generalCAS64 |
