STINNER Victor added the comment:

> 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?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26588>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to