go/types: incorrect alignment of sync/atomic.Int64 and Uint64 #53884
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No.
What did you do?
go/types
doesn't understand the special alignment of thesync/atomic.Int64
andsync/atomic.Uint64
types that were added in this development cycle (ffe48e0, #47141).What did you expect to see?
go/types
and the gc compiler should agree on the layout of structs that include fields of these types. These fields should always be 8-byte aligned.What did you see instead?
On 32-bit platforms,
sync/atomic.Int64
andUint64
fields are 4-byte aligned according togo/types
.I have a CL fixing this that I'll send out shortly.
/cc @rsc @griesemer
The text was updated successfully, but these errors were encountered: