This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients njs, pitrou, vstinner
Date 2016-03-21.14:54:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458572092.88.0.248002598258.issue26588@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2016-03-21 14:54:52vstinnersetrecipients: + vstinner, pitrou, njs
2016-03-21 14:54:52vstinnersetmessageid: <1458572092.88.0.248002598258.issue26588@psf.upfronthosting.co.za>
2016-03-21 14:54:52vstinnerlinkissue26588 messages
2016-03-21 14:54:52vstinnercreate