◐ Shell
reader mode source ↗
Skip to content

bpo-27987: align PyGC_Head to alignof(long double) explicitly#13336

Closed
methane wants to merge 1 commit into
python:masterfrom
methane:align-gchead
Closed

bpo-27987: align PyGC_Head to alignof(long double) explicitly#13336
methane wants to merge 1 commit into
python:masterfrom
methane:align-gchead

Conversation

@methane

@methane methane commented May 15, 2019

Copy link
Copy Markdown
Member

PyGC_Head consists two uintptr_t variables so it is aligned to 16 byte
on amd64 platform already.

This commit makes this alignment more explicit, although make code
bit ugly.

https://bugs.python.org/issue27987

@vstinner

Copy link
Copy Markdown
Member

This commit makes this alignment more explicit, although make code bit ugly.

Said differently, it doesn't change PyGC_Head size on 64-bit system, right? Does it change the size on 32-bit system?

Correctness matters more than code beauty here ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants