Skip to content

GH-126910: Allow native profilers and debuggers to unwind through JIT frames#143548

Merged
Fidget-Spinner merged 6 commits into
python:mainfrom
brandtbucher:jit-unwind
Mar 24, 2026
Merged

GH-126910: Allow native profilers and debuggers to unwind through JIT frames#143548
Fidget-Spinner merged 6 commits into
python:mainfrom
brandtbucher:jit-unwind

Conversation

@brandtbucher

@brandtbucher brandtbucher commented Jan 8, 2026

Copy link
Copy Markdown
Member

Most unwinders will optimistically fall back to frame pointers if DWARF unwind info isn't present for a given frame. This patch enables frame pointers in JIT code on x86-64 Linux, by setting them in the "shim" frame and reserving the frame pointer register in the rest of the JIT code. @Fidget-Spinner can confirm that this works for the unwinders in https://github.com/pablogsal/cpython-unwind.

Perf impact is neutral.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants