tools: Index | Files

package atomicalign

import ""

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


Package Files



const Doc = "check for non-64-bits-aligned arguments to sync/atomic functions"


var Analyzer = &analysis.Analyzer{
    Name:     "atomicalign",
    Doc:      Doc,
    Requires: []*analysis.Analyzer{inspect.Analyzer},
    Run:      run,

Package atomicalign imports 7 packages (graph) and is imported by 7 packages. Updated 2020-11-24. Refresh now. Tools for package owners.