Skip to content

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

Merged
AndyAyersMS merged 1 commit into
dotnet:mainfrom
AndyAyersMS:fix-readytorun-log-empty-name
Jun 25, 2026
Merged

AndyAyersMS merged 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 <[email protected]>
@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.

@AndyAyersMS
AndyAyersMS merged commit 4d32e13 into dotnet:main Jun 25, 2026
114 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jun 26, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
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 <[email protected]>
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants