[issue27987] obmalloc's 8-byte alignment causes undefined behavior

STINNER Victor report at bugs.python.org
Wed Nov 8 09:14:26 EST 2017


STINNER Victor <victor.stinner at gmail.com> added the comment:

alignment.patch: +    long double dummy;  /* force worst-case alignment */

Would it be possible to use max_align_t mentioned by Stefan, at least when this type is available?

What is the impact of the patch on objects size?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27987>
_______________________________________


More information about the Python-bugs-list mailing list