-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
sync/atomic: LoadInt64 panics on ARM when uint64 variable is not 64bit aligned #9959
Comments
From the bottom of the
|
Looks like a typical case of RTFM then :) Although, when it is listed in the docs as bug, why is there no bug in the bug tracker? |
"Bug" is probably a stronger word than is necessary. "Caveat" is better, but godoc doesn't recognise |
That is not a bug that could be easily fixed without large scale toolchain
and runtime changes (e.g. we need 64-bit alignment of SP on 32-bit
systems), although the 7g port does lay the foundation for such changes.
|
@minux why is sp alignment required? |
If you still want to allocate an otherwise unescaped variable on the stack,
then the easiest way is to require stronger SP alignment, which is
nontrivial but possible.
|
The following code works fine on Windows x86_64 and fails on Debian Jessie on a Raspberry Pi 2 ARMv7, both go version 1.4:
Not sure if this is a bug in LoadInt64 or a bug in the go memory layouter...
The text was updated successfully, but these errors were encountered: