• Cherry Zhang's avatar
    sync/atomic: redirect many functions to runtime/internal/atomic · 1b6fec86
    Cherry Zhang authored
    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/93637Reviewed-by: 's avatarAustin Clements <austin@google.com>
    1b6fec86
Name
Last commit
Last update
..
atomic Loading commit data...
cond.go Loading commit data...
cond_test.go Loading commit data...
example_pool_test.go Loading commit data...
example_test.go Loading commit data...
export_test.go Loading commit data...
map.go Loading commit data...
map_bench_test.go Loading commit data...
map_reference_test.go Loading commit data...
map_test.go Loading commit data...
mutex.go Loading commit data...
mutex_test.go Loading commit data...
once.go Loading commit data...
once_test.go Loading commit data...
pool.go Loading commit data...
pool_test.go Loading commit data...
runtime.go Loading commit data...
runtime_sema_test.go Loading commit data...
rwmutex.go Loading commit data...
rwmutex_test.go Loading commit data...
waitgroup.go Loading commit data...
waitgroup_test.go Loading commit data...