Skip to content

Use assembly simple name in ReadyToRun log when path is empty#129837

Open
AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:fix-readytorun-log-empty-name
Open

Use assembly simple name in ReadyToRun log when path is empty#129837
AndyAyersMS wants to merge 1 commit into
dotnet:mainfrom
AndyAyersMS:fix-readytorun-log-empty-name

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

On hosts like wasm, in-memory/webcil assemblies have no file path, so DOTNET_ReadyToRunLogFile logged an empty name. Fall back to PEAssembly::GetSimpleName() so each entry identifies its module.

On hosts like wasm, in-memory/webcil assemblies have no file path, so
DOTNET_ReadyToRunLogFile logged an empty name. Fall back to
PEAssembly::GetSimpleName() so each entry identifies its module.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AndyAyersMS

Copy link
Copy Markdown
Member Author

@davidwrighton PTAL
fyi @dotnet/wasm-contrib

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This change improves ReadyToRun load logging by ensuring each log entry includes an identifying module name even when an assembly has no filesystem path (e.g., in-memory assemblies).

Changes:

  • When PEAssembly::GetPath() is empty, log PEAssembly::GetSimpleName() instead of an empty string.
  • Add an explanatory comment describing why the fallback is needed.

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.

4 participants