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 memory allignment for 32-bit architectures (#668) #269

Merged
merged 1 commit into from Jun 8, 2016

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Jun 8, 2016

having 3 int32s above the uint64s in the struct
will cause misalignment for some 32-bit architectures.
see https://golang.org/pkg/sync/atomic/#pkg-note-BUG
This aligns bytesReceived and bytesSent.

having 3 int32s above the uint64s in the struct
will cause misalignment for some 32-bit architectures.
see https://golang.org/pkg/sync/atomic/#pkg-note-BUG
This aligns bytesReceived and bytesSent.
@jcvernaleo
Copy link
Member

tACK
I tested on a raspberrypi and this avoids the panic. Also tested on linux/amd64 for good measure and it does not break anything there.

@alexlyp alexlyp merged commit 2bbfd5f into decred:master Jun 8, 2016
@jcvernaleo jcvernaleo added this to the v0.1.6 milestone Jun 13, 2016
@alexlyp alexlyp deleted the ayp_32bit branch July 27, 2016 19:23
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