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

fix: adjust alignment for 32-bit arch #33

Merged
merged 2 commits into from
May 17, 2022
Merged

fix: adjust alignment for 32-bit arch #33

merged 2 commits into from
May 17, 2022

Conversation

shubha-rajan
Copy link
Contributor

Change Description

This fixes the panic: unaligned 64-bit atomic operation error on 386 architectures.

Checklist

  • Make sure to open an issue as a
    bug/issue
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea.
  • Ensure the tests and linter pass
  • Appropriate documentation is updated (if necessary)

Relevant issues:

@shubha-rajan shubha-rajan requested review from kurtisvg and a team May 17, 2022 16:43
@kurtisvg kurtisvg changed the title fix: move OpenConns to front of instance struct to guarantee 64bit alignment fix: adjust alignment for 32-bit arch May 17, 2022
@kurtisvg kurtisvg merged commit b0e76fa into main May 17, 2022
@kurtisvg kurtisvg deleted the fix-panic-unaligned branch May 17, 2022 19:38
This was referenced Jul 12, 2022
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.

panic: unaligned 64-bit atomic operation
2 participants