package atomicalign
import "golang.org/x/tools/go/analysis/passes/atomicalign"
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
Index ¶
Constants ¶
const Doc = "check for non-64-bits-aligned arguments to sync/atomic functions"
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "atomicalign", Doc: Doc, URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/atomicalign", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Source Files ¶
atomicalign.go
- Version
- v0.30.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 hours ago –
Tools for package owners.