Package atomicalign defines an Analyzer that checks for non-64-bit-aligned arguments to sync/atomic functions. On non-32-bit platforms, those functions panic if their argument variables are not 64-bit aligned. It is therefore the caller's responsibility to arrange for 64-bit alignment of such variables. See https://golang.org/pkg/sync/atomic/#pkg-note-BUG
Package Files ¶
const Doc = "check for non-64-bits-aligned arguments to sync/atomic functions"
Version v0.1.8 (latest) | Published Dec 2, 2021 | Platform: linux/amd64 | Updated 3 weeks agoTools for package owners.