Skip to content

Avoid alignment bugs on 32 bit architectures - #450

Merged
rubyist merged 1 commit into
masterfrom
atomic-blast
Jun 29, 2015
Merged

rubyist merged 1 commit into
masterfrom
atomic-blast

Conversation

@rubyist

@rubyist rubyist commented Jun 29, 2015

Copy link
Copy Markdown
Contributor

The progress tracking code in the transfer queue currently uses 64 bit integers for tracking the number of finished transfers. It sets the values using the sync/atomic package. There is an alignment bug in the package when using int64 on 32 bit architectures.

These don't really need to be 64 bit counters, so to avoid just moving them to the top of the struct and risking them being misplaced later we'll just use 32 bit ints.

rubyist added a commit that referenced this pull request Jun 29, 2015
Avoid alignment bugs on 32 bit architectures
@rubyist
rubyist merged commit fc319de into master Jun 29, 2015
@rubyist
rubyist deleted the atomic-blast branch June 29, 2015 15:54
This was referenced Jun 29, 2015
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.

1 participant