]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)
authorFlorian Weimer <fw@deneb.enyo.de>
Sun, 29 Apr 2018 19:18:33 +0000 (12:18 -0700)
committerBenjamin Peterson <benjamin@python.org>
Sun, 29 Apr 2018 19:18:33 +0000 (12:18 -0700)
commit0b91f8a668201fc58fa732b8acc496caedfdbae0
tree1ff9fa9b9056975c9dbd3a5eddcf5ebe3166c6fe
parentbad9a580caaba5088bea569c9c6775dab12b8103
Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)

By spec, the "long double" in _PyGC_Head requires the union to always be 16-byte
aligned. However, obmalloc only yields 8-byte alignment. Compilers including GCC
8 are starting to use alignment information to do store-merging. So, the "long
double" needs to be changed to a simple "double" as was long ago done in Python
3 by e348c8d154cf6342c79d627ebfe89dfe9de23817. For 2.7, we need to add some
dummy padding to make sure _PyGC_Head stays the same size.
Include/objimpl.h
Misc/NEWS.d/next/Core and Builtins/2018-04-29-12-07-00.bpo-33374.-xegL6.rst [new file with mode: 0644]