-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Lookup R2R unwind info via R2R data structures #120758
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
Lookup R2R unwind info via R2R data structures #120758
Conversation
Lookup image runtime functions via R2R data structures instead of via PE data structures. This will make it easier to add support for non-PE R2R composite envlopes.
|
Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Switch runtime function lookup for ReadyToRun (R2R) methods from PE image directory parsing to direct use of R2R-maintained runtime function arrays, enabling future non-PE composite envelope support.
- Replaced PE-based exception directory traversal with direct table pointer and count.
- Updated JitTokenToReadyToRunInfo to return DAC-friendly PTR_ReadyToRunInfo.
- Adjusted unwind info enumeration to use R2R data structure members directly.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/coreclr/vm/codeman.h | Updated JitTokenToReadyToRunInfo return type to PTR_ReadyToRunInfo. |
| src/coreclr/vm/codeman.cpp | Refactored runtime function entry enumeration to use R2R tables; updated call sites accordingly. |
noahfalk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Lookup image runtime functions via R2R data structures instead of via PE data structures.
This will make it easier to add support for non-PE R2R composite envelopes.