gvisorgvisor.dev/gvisor/tools/checkaligned Index | Files

package checkaligned

import "gvisor.dev/gvisor/tools/checkaligned"

Package checkaligned ensures that atomic (u)int operations happen exclusively via the atomicbitops package.

We support a "// +checkalignedignore" escape hatch in the package comment that disables checking throughout the package.

Index

Variables

var Analyzer = &analysis.Analyzer{
	Name: "checkaligned",
	Doc:  "prohibits direct use of atomic int operations",
	Run:  run,
}

Analyzer defines the entrypoint.

Source Files

checkaligned.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
4 hours ago

Tools for package owners.