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 ronaldoussoren
Recipients methane, petr.viktorin, pitrou, ronaldoussoren, vstinner
Date 2022-04-07.19:36:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1649360164.99.0.486123824575.issue47179@roundup.psfhosted.org>
In-reply-to
Content
> If we want to respect sizeof(max_align_t) alignment, we can compute sizeof(max_align_t) in configure and uses the result in obmalloc.c. I expect that it's either 16 or 32, so we can maybe just hardcode ALIGNMENT_SHIFT using something like: "if == 32 ... #elif == 16 ... #else #error ...".

This should be "alignof(max_align_t)" instead of "sizeof(...)". The size itself is not relevant.

BTW, on macOS/arm64 alignof(max_align_t) is 8, not 16 (as the code seems to expect given the pointer size). This is harmless of course.
History
Date User Action Args
2022-04-07 19:36:05ronaldoussorensetrecipients: + ronaldoussoren, pitrou, vstinner, petr.viktorin, methane
2022-04-07 19:36:04ronaldoussorensetmessageid: <1649360164.99.0.486123824575.issue47179@roundup.psfhosted.org>
2022-04-07 19:36:04ronaldoussorenlinkissue47179 messages
2022-04-07 19:36:04ronaldoussorencreate