Move rt_regs from stack to record scratch#1286
Merged
Merged
Conversation
Contributor
Author
|
I was hoping for this PR to just be one commit relative to PR 1280 but GH requires base branch to be in this repo. |
c8ee363 to
0cf56fc
Compare
Contributor
|
I think the commit to move |
Contributor
Author
|
Yeah I can rebase this to main and make it standalone and pull this out of the commit set in #1288 |
Contributor
Author
|
Rebased to main and RFAL. |
Contributor
Author
|
@fabled @florianl @christos68k whats the best way to move this forward? I feel like I shouldn't bother rebasing/blob rebuilding again until it gets some green checkmarks... |
christos68k
approved these changes
Apr 15, 2026
fd026c0 to
8a865af
Compare
On arm64, rt_regs[34] consumes 272 bytes of the 512-byte BPF stack. When unwind_one_frame is inlined into interpreter unwinders, this exceeds the stack limit. Move rt_regs into the PerCPURecord scratch union which is already 1024+ bytes and unused during signal frame handling.
Contributor
Author
|
rebased and python droppings removed |
This was referenced May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is another prep the patient PR for a hybrid python native unwinder. Combining the two unwinders exhausted the bpf stack and this fixes it.