Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PE: Introduce a fast path for unwinding stack only #21

Open
ishitatsuyuki opened this issue Mar 1, 2024 · 0 comments
Open

PE: Introduce a fast path for unwinding stack only #21

ishitatsuyuki opened this issue Mar 1, 2024 · 0 comments

Comments

@ishitatsuyuki
Copy link
Contributor

#13 introduced support to recover full register information from unwind info, not only RIP, RSP and RBP. However, this does have some performance implications:

  • "Pop register" opcodes still reads the stack to recover general purpose registers even though they will not be used.
  • "Save register" opcodes can be skipped and take the unwind rule fast path if register recovery is not needed. On the other hand the offsets are likely too large to encode into an unwind rule if register recovery is needed.

There should be some way to select either the faster behavior or the register recovery behavior.

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

No branches or pull requests

1 participant