Skip to content

Enable System.Private.CoreLib for testing in CoreRun scenarios - #131493

Draft
davidwrighton wants to merge 2 commits into
dotnet:mainfrom
davidwrighton:spc_wasm_ryujit
Draft

Enable System.Private.CoreLib for testing in CoreRun scenarios#131493
davidwrighton wants to merge 2 commits into
dotnet:mainfrom
davidwrighton:spc_wasm_ryujit

Conversation

@davidwrighton

Copy link
Copy Markdown
Member

Enable System.Private.CoreLib for testing R2R and WASM. At least one of the suites id known to pass with this enabled. This PR is testing to see how many other failures there are.

davidwrighton and others added 2 commits July 28, 2026 10:40
…t infix)

The wasm R2R crossgen output for System.Private.CoreLib was parked at
System.Private.CoreLib.NotReadyYet.wasm so it would not be picked up as
the corelib image. Emit it as System.Private.CoreLib.wasm so the crossgen'd
ReadyToRun image is the one packaged and loaded.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a5c93aa6-580b-4f11-ac30-860081fab183
Copilot AI review requested due to automatic review settings July 28, 2026 21:39
@github-actions github-actions Bot added the area-crossgen2-coreclr only use for closed issues label Jul 28, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

Adjusts CoreCLR’s corerun and CoreLib crossgen outputs to better support browser/WASM CoreRun scenarios, particularly around resolving assemblies via the browser host probe and producing the expected CoreLib wasm artifact name.

Changes:

  • In corerun’s external assembly probe, add a browser-host probe attempt for CORE_LIBRARIES/CORE_ROOT + <assembly name> paths.
  • For wasm container format in crossgen-corelib.proj, change the CoreLib wasm output name to System.Private.CoreLib.wasm (instead of System.Private.CoreLib.NotReadyYet.wasm).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/coreclr/hosts/corerun/corerun.cpp Adds an additional TARGET_BROWSER probe path to help resolve assemblies from browser-host registered assets.
src/coreclr/crossgen-corelib.proj Updates wasm CoreLib crossgen output filename to the expected System.Private.CoreLib.wasm.

Comment on lines +388 to +391
#ifdef TARGET_BROWSER
if (BrowserHost_ExternalAssemblyProbe(full_path.c_str(), data_start, size))
return true;
#endif // TARGET_BROWSER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-crossgen2-coreclr only use for closed issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants