Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[crossgen2] Rename TryGetReadyToRunHeader to TryGetCompositeReadyToRunHeader #114886

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Apr 22, 2025

  • Delete local definition that is no longer needed
  • Rename method to make its name match what it actually does

@Copilot Copilot AI review requested due to automatic review settings April 22, 2025 01:48
Copy link
Contributor

@Copilot 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

This PR performs a minor cleanup to improve consistency in handling ReadyToRun images. It renames methods to better reflect their composite detection functionality and removes an obsolete local constant to simplify the code.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/coreclr/tools/aot/crossgen2/Program.cs Updated the ReadyToRun header retrieval method to use the composite variant.
src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/ReadyToRunReader.cs Modified ReadyToRun-related method calls to align with the composite image handling.
src/coreclr/tools/aot/ILCompiler.Reflection.ReadyToRun/PEReaderExtensions.cs Renamed the method and updated the documentation to indicate composite ReadyToRun image support.
src/coreclr/tools/Common/TypeSystem/Ecma/EcmaMethod.cs Removed the unnecessary local constant in favor of directly using MethodImplAttributes.AggressiveOptimization.

@jkotas jkotas changed the title [crossgen2] Minor cleanup [crossgen2] Rename TryGetReadyToRunHeader to TryGetCompositeReadyToRunHeader Apr 22, 2025
@jkotas jkotas requested a review from steveisok April 22, 2025 17:04
@steveisok steveisok requested a review from a team April 22, 2025 17:10
@jkotas
Copy link
Member Author

jkotas commented Apr 22, 2025

/ba-g infrastructure timeout

@jkotas jkotas merged commit a078c18 into dotnet:main Apr 22, 2025
92 of 94 checks passed
@jkotas jkotas deleted the misc branch May 4, 2025 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants