[issue26588] _tracemalloc: add support for multiple address spaces (domains)
STINNER Victor
report at bugs.python.org
Mon Mar 21 10:54:52 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue26588>
_______________________________________
More information about the Python-bugs-list
mailing list