Skip to content

Keep the perf trampoline end marker inside its text section - #19

Closed
zaniebot wants to merge 2 commits into
mainfrom
pbs/perf-trampoline-20261021
Closed

zaniebot wants to merge 2 commits into
mainfrom
pbs/perf-trampoline-20261021

Conversation

@zaniebot

@zaniebot zaniebot commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

The perf trampoline end marker can share the following function's address, so BOLT may move it with that function. Add a byte after the marker to give it a distinct address without changing the copied trampoline size.

Ports PBS's patch-perf-trampoline-bolt.patch to the architecture-specific assembly files.

Related: python/cpython#128883 tracks perf-profiler test failures after BOLT.

@zaniebot

Copy link
Copy Markdown
Collaborator Author

Promoted to python#160366

@zaniebot zaniebot closed this Oct 22, 2026
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.

1 participant