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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(array): remove 64bit refcount misalignments #5390

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Mar 1, 2023

Invoking atomic operations in the reference counters resulted in an alignment panic in armv7, due to them not being 64bit aligned.

Declaring them first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at #4676

Checklist

Dear Author 馃憢, the following checks should be completed (or explicitly dismissed) before merging.

  • 鉁忥笍 Write a PR description, regardless of triviality, to include the value of this PR
  • 馃敆 Reference related issues
  • 馃弮 Test cases are included to exercise the new code
  • 馃И If new packages are being introduced to stdlib, link to Working Group discussion notes and ensure it lands under experimental/
  • 馃摉 If language features are changing, ensure docs/Spec.md has been updated

Dear Reviewer(s) 馃憢, you are responsible (among others) for ensuring the completeness and quality of the above before approval.

Invoking atomic operations in the reference counters resulted in an alignment panic in armv7, due to them not being 64bit aligned.

Declaring them first in the struct solved it.

See https://pkg.go.dev/sync/atomic#pkg-note-BUG fore more details

For context: I already fixed a similar issue at influxdata#4676
@2opremio 2opremio requested a review from a team as a code owner March 1, 2023 10:38
Copy link
Contributor

@appletreeisyellow appletreeisyellow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@appletreeisyellow appletreeisyellow merged commit d6af118 into influxdata:master Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants