Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the stats is always 64bit aligned #584

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Ensure the stats is always 64bit aligned #584

merged 1 commit into from
Oct 25, 2023

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Oct 23, 2023

Second solution for #577

The first word in an allocated struct can be relied upon to be 64-bit aligned. Refer to https://pkg.go.dev/sync/atomic#pkg-note-BUG.

The first word in an allocated struct can be relied upon to be
64-bit aligned. Refer to https://pkg.go.dev/sync/atomic#pkg-note-BUG.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
@tjungblu
Copy link
Contributor

/lgtm

@ahrtr ahrtr mentioned this pull request Oct 23, 2023
6 tasks
@ahrtr
Copy link
Member Author

ahrtr commented Oct 23, 2023

thx @tjungblu for quick review.

cc @fuweid @mitake @ptabor @spzala @serathius to take a look.

@ahrtr ahrtr merged commit d094cd7 into etcd-io:master Oct 25, 2023
9 checks passed
@ahrtr ahrtr added this to the v1.4.0 milestone Oct 25, 2023
@go-while go-while mentioned this pull request Oct 26, 2023
@ahrtr ahrtr removed this from the v1.4.0 milestone Oct 27, 2023
@fuweid
Copy link
Member

fuweid commented Nov 5, 2023

@ahrtr Thanks for fix. LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants