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

Changed atomic types to avoid alignment problems on 32 bit platforms #26

Merged

Conversation

licensedslacker
Copy link
Contributor

Encountered an alignment problem while using nutsdb library on 32 bit Linux ARM platform. atomic.Add*, atomic.Store* and atomic.Load* calls require that the caller has set proper 64-bit alignment for the values. By using atomic.Uint32 and atomic.Uint64 types should deal with this issue and the alignment is handled by the type. Test cases passed.

@guonaihong guonaihong merged commit 8d57f32 into antlabs:master Dec 4, 2024
1 check passed
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.

2 participants