Skip to content

Correct 32-bit code alignment of perf_trampoline's trampoline_api - #155949

Open
MaxistheSpy wants to merge 3 commits into
python:mainfrom
MaxistheSpy:patch-1
Open

Correct 32-bit code alignment of perf_trampoline's trampoline_api#155949
MaxistheSpy wants to merge 3 commits into
python:mainfrom
MaxistheSpy:patch-1

Conversation

@MaxistheSpy

Copy link
Copy Markdown

bit byte confusion here, perf trampoline was previously aligned to 32 bytes, significantly overallocating space per trampoline

Code comment states we align to 32 bits, but units are in bytes, so we align 8* larger then we mean to.

Pull Request title

trivial fix does not need an issue number

… bytes

bit byte confusion here, perf trampoline was previously aligned to 32 bytes, significantly overallocating space per trampoline
@bedevere-app

bedevere-app Bot commented Aug 17, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Aug 17, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Aug 17, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@picnixz

picnixz commented Aug 17, 2026

Copy link
Copy Markdown
Member

trivial fix does not need an issue number

It's not a trivial fix, so it needs an issue.

@picnixz picnixz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is no issue you can't have a NEWS entry. If @pablogsal thinks there is no need for one, remove that NEWS (for now, remove it).

@bedevere-app

bedevere-app Bot commented Aug 17, 2026

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

And if you don't make the requested changes, you will be put in the comfy chair!

@bedevere-app

bedevere-app Bot commented Aug 17, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@MaxistheSpy

Copy link
Copy Markdown
Author

trivial fix does not need an issue number

It's not a trivial fix, so it needs an issue.

Should I add an issue just to then have this pr close it? I'm happy to I just want to make sure that's procedure. I thought the issue policy was so changes are justified

@picnixz

picnixz commented Aug 17, 2026

Copy link
Copy Markdown
Member

What falls under "trivial" is generally: typos/docs/tests or amendments of a previous commit (though in this case, it's better to reuse the issue number of that previous commit). When it affects core components, the issue serves both as a discussion (to confirm the bug) and as a way to track the history of the change.

But if you're right about the codeunit (I didn't really check), then I believe it could also be considered trivial. I just want Pablo to acknowledge the issue as he's the maintainer of that part and I'm not familiar enough with it.

For now I'm just adding a skip issue and skip news, so you can remove the NEWS entry as well. We'll write a proper one if needed.

@picnixz picnixz changed the title minor fix perf_trampoline alignment to actually align to 32 bits Correct 32-bit code alignment of perf_trampoline's trampoline_api Aug 17, 2026
@picnixz
picnixz requested a review from pablogsal August 17, 2026 10:35
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.

2 participants