Repository navigation
[browser][coreclr] Add trimmed managed dev-loop/prod flavors - #137440
Draft
pavelsavara wants to merge 5 commits into
Draft
pavelsavara wants to merge 5 commits into
pavelsavara wants to merge 5 commits into
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
This was referenced Nov 12, 2026
This was referenced Nov 14, 2026
Open
This was referenced Nov 20, 2026
Build production and diagnostics shared-framework closures, generate flavor-specific interop helpers, and select matching managed and native assets without wasm-tools. Keep app publish trimming and workload relinking behavior unchanged. Co-authored-by: Copilot <[email protected]>
Generate and commit production and diagnostics call-helper tables, build separate native archives, and select them when prelinking browserhost. Keep the full framework helper archive for corerun and reserve dynamic generation for application relinking. Co-authored-by: Copilot <[email protected]>
Preserve the complete framework implementation while applying EventSource substitutions, distinguish workload defaults from explicit settings, and defer flavor asset validation until runtime-pack selection. Co-authored-by: Copilot <[email protected]>
Adapt the Browser EventPipe component boundary to static provider event tables, stage diagnostics assets for EventSource-enabled library tests, and skip publish boot config work in native-only nested publishes. Regenerate the checked-in flavor helpers for the current CoreLib ABI. Co-authored-by: Copilot <[email protected]>
Enable the managed EventSource switch directly in the untrimmed test app so the diagnostics alias cannot swap in an enabled EventPipe runtime. Compare the published WASM with the production asset before checking listener delivery. Co-authored-by: Copilot <[email protected]>
pavelsavara
force-pushed
the
pavelsavara-browser-coreclr-trimmed-native-flavors
branch
from
November 25, 2026 12:52
4b36a56 to
0059919
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft is stacked on #137014, which supplies the production and diagnostics native prelinks. Review and merge #137014 first.
wasm-tools. Build defaults to diagnostics and uses the compatible runtime-pack ReadyToRun images; a production build uses trimmed IL. Publish defaults to production and retains app-specific trimming and optional ReadyToRun compilation.EnableDiagnosticsandEventSourceSupportsettings as flavor aliases without making either property independently trigger a native relink. Keep the diagnostics prelink available to Browser library tests that enable either tracing property.EventListenerstill receives manifest and dynamic events with the production native prelink and native EventPipe disabled.Release size comparison
Measurements are from the pre-rebase Release runtime-pack nupkg. Compressed values are the sum of the corresponding ZIP entry sizes.
dotnet.native.wasmSystem.Private.CoreLib.dllis 5,603,840 bytes in production and 5,619,200 bytes in diagnostics, a 15,360-byte difference.The two additional checked-in helper archives add 881,242 raw bytes and 301,930 nupkg-compressed bytes. The existing full helper archive remains for corerun compatibility.
Reviewer notes
EnableDiagnosticstoEventSourceSupportis deferred; both settings remain supported.allroots to preserve the complete runtime implementation while applying EventSource feature substitutions. Production and diagnostics expose the same helper surface; their managed method bodies differ.Note
This pull request description was generated with GitHub Copilot.