Skip to content

x/sys/cpu: add type CacheLinePad #25203

@AlexRouSg

Description

@AlexRouSg

#24843 added a new package for CPU feature detection, when looking through the package I noticed const cacheLineSize and thought that could be useful if it were exported.

My use case is the same as the package, adding padding to structs to prevent false sharing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions