◐ Shell
clean mode source ↗

Message 262131 - Python tracker

> What about alignment issues on strict platforms? (SPARC?)

Which kind of alignment issue do you expect?

I added "__attribute__((packed))" to frame_t. I expected SIGBUS because of that (it's even documented in a comment ;-)), but I practice nobdy complained, not even our buildbots. Hum, it looks like we only have one SPARC buildbot and it's offline...

_Py_hashtable_get() uses memcpy() to copy the value, so this function should not have any alignment issue.

The new code uses pointer dereference, so alignment issues are more likely. How can I test it on Intel CPU?

Should I also use memcpy() to retrieve the key value?