Skip to content

check alignment of all atomic vars #5001

Open
@brianolson

Description

Problem

On 32 bit platforms (ARM) sync/atomic operations can crash if a 64 bit value is misaligned.

Solution

Create unit tests that use unsafe.Offset to check if that % 8 == 0

See network/wsPeer_test.go

Dependencies

None

Urgency

Nice-to-have. 32 bit platforms aren't much used.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions