Skip to content

Conversation

@jkoritzinsky
Copy link
Member

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.

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.
Copilot AI review requested due to automatic review settings October 15, 2025 18:37
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @steveisok, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a 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.

Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants