Go's Atomics and the Memory Model: What sync/atomic Actually Guarantees
sync/atomic is sequentially consistent, the typed wrappers (Int64, Pointer[T]) exist to stop you shooting yourself in the foot, and on amd64 everything bottoms out in LOCK CMPXCHG …