Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(arm): Fix crashing under ARMv6 due to memory mis-alignment (#239)
NOTE: align maxCost to 64-bit boundary for use with atomic. As per https://golang.org/pkg/sync/atomic/: "On ARM, x86-32, and 32-bit MIPS, it is the caller’s responsibility to arrange for 64-bit alignment of 64-bit words accessed atomically. The first word in a variable or in an allocated struct, array, or slice can be relied upon to be 64-bit aligned."
- Loading branch information