Skip to content

Commit 2156fec

Browse files
authored
[3.7] Revert "align PyGC_Head to alignof(long double) (pythonGH-13335)" (pythonGH-13569)
This reverts commit ea2b76b. See the bug for discussion. https://bugs.python.org/issue27987
1 parent ea2b76b commit 2156fec

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Include/objimpl.h

+1-5
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,7 @@ typedef union _gc_head {
255255
union _gc_head *gc_prev;
256256
Py_ssize_t gc_refs;
257257
} 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 */
263259
} PyGC_Head;
264260

265261
extern PyGC_Head *_PyGC_generation0;

Misc/NEWS.d/next/Core and Builtins/2019-05-15-18-28-43.bpo-27987.FaxuLy.rst

-2
This file was deleted.

0 commit comments

Comments
 (0)