Repository navigation
Avoid text PGO input/output on interpreter-only runtimes - #137402
Merged
davidwrighton merged 1 commit intoNov 12, 2026
Merged
davidwrighton merged 1 commit into
davidwrighton merged 1 commit into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 0450a1a5-696d-455f-8288-4924e23b62d7
|
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 this area: @JulieLeeMSFT, @BrzVlad, @janvorli |
BrzVlad
approved these changes
Nov 12, 2026
davidwrighton
marked this pull request as ready for review
November 12, 2026 17:10
This was referenced Nov 12, 2026
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
Avoid rooting the legacy text PGO reader and writer on interpreter-only runtimes by guarding their startup/shutdown calls with
FEATURE_DYNAMIC_CODE_COMPILED. Text profile consumption is a native JIT optimization path, not an interpreter compilation path.Keep text input/output on JIT-capable builds, including when those builds run in interpreter mode. Move shutdown EventPipe logging outside the text writer so it remains independent of text export. Interpreter method/loop counters and threadless EventPipe session-stop export are unchanged.
This is a standalone change to
pgo.cpp; it contains no interpreter callback interface changes.Native size
Matching browser-wasm Release builds on the standalone base (
491df16a213), measuringcorerun.wasm:The text writer's
*** START PGO Datamarker is present in the baseline module and absent from the changed module.Validation
./build.sh clr.runtime+clr.hosts -os browser -arch wasm -c Release /p:RuntimeFlavor=CoreCLRpassed before and after the change.JIT.CodeGenBringUpTests_r.dll, hosted by the resultingcorerun.jswithDOTNET_InterpPGO=1: 8 tests passed; expected managed exit code 100../build.sh clr.runtime+clr.hosts -c Debug /p:FeatureInterpreter=true /p:FeatureDynamicCodeCompiled=truepassed. This reused the original callback branch's existing build with identicalpgo.cppchanges, rather than the standalone worktree.DOTNET_InterpMode=3 DOTNET_InterpPGO=1 DOTNET_WritePGOData=1. Both returned 100; the latter also produced a nonempty text profile containing 2,820 method records.git diff --checkpassed.Apple/WASI execution and end-to-end EventPipe trace collection were not run.
Note
This pull request was prepared with GitHub Copilot.