From 8f14a554f5f90e007059ddfa4305f520dae22b0f Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Sat, 25 May 2019 09:17:15 -0700 Subject: [PATCH] Revert "bpo-27987: align PyGC_Head to alignof(long double) (GH-13335)" This reverts commit ea2b76bdc5f97f49701213d105b8ec2387ea2fa5. --- Include/objimpl.h | 6 +----- .../2019-05-15-18-28-43.bpo-27987.FaxuLy.rst | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst diff --git a/Include/objimpl.h b/Include/objimpl.h index 0436ba7899d9a8..057bb50cbda9e2 100644 --- a/Include/objimpl.h +++ b/Include/objimpl.h @@ -255,11 +255,7 @@ typedef union _gc_head { union _gc_head *gc_prev; Py_ssize_t gc_refs; } gc; - long double dummy; /* force worst-case alignment */ - // malloc returns memory block aligned for any built-in types and - // long double is the largest standard C type. - // On amd64 linux, long double requires 16 byte alignment. - // See bpo-27987 for more discussion. + double dummy; /* force worst-case alignment */ } PyGC_Head; extern PyGC_Head *_PyGC_generation0; diff --git a/Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst b/Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst deleted file mode 100644 index 97ca37b262a1c4..00000000000000 --- a/Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst +++ /dev/null @@ -1,2 +0,0 @@ -``PyGC_Head`` structure is aligned to ``long double``. This is needed to -GC-ed objects are aligned properly. Patch by Inada Naoki.