Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorder Scanner fields to fix alignment issues (#464)
Go doesn't always guarantee 64-bit alignment of 64-bit integer, which leads to crashes when atomic operations are used on them on certain platforms (e.g. ARM). This problem is described here: https://golang.org/pkg/sync/atomic/#pkg-note-BUG By putting these fields first, proper alignment will be guaranteed. golang/go#599 golang/go#23345
- Loading branch information