[issue31912] PyMem_Malloc() should guarantee alignof(max_align_t)

STINNER Victor report at bugs.python.org
Tue Oct 31 14:07:15 EDT 2017


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

> I think PyMem_Malloc() should guarantee alignof(max_align_t).

Do you mean the C++ std::max_align_t? Does C99 have something like that?

The Linux malloc() manual page says:

"The malloc() and calloc() functions return a pointer to  the  allocated memory,  which  is  suitably  aligned for any built-in type."

But I don't know the list of C built-in types.

----------

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


More information about the Python-bugs-list mailing list