[3.7] Revert "align PyGC_Head to alignof(long double) (GH-13335)" (GH… · python/cpython@2156fec (original) (raw)

File tree

2 files changed

lines changed

2 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -255,11 +255,7 @@ typedef union _gc_head {
255 255 union _gc_head *gc_prev;
256 256 Py_ssize_t gc_refs;
257 257 } gc;
258 -long double dummy; /* force worst-case alignment */
259 -// malloc returns memory block aligned for any built-in types and
260 -// long double is the largest standard C type.
261 -// On amd64 linux, long double requires 16 byte alignment.
262 -// See bpo-27987 for more discussion.
258 +double dummy; /* force worst-case alignment */
263 259 } PyGC_Head;
264 260
265 261 extern PyGC_Head *_PyGC_generation0;