Repository navigation
[release/11.0] JIT: Gate single-edge root profile trust on hotness or speed preference - #136165
Merged
steveisok merged 1 commit intoOct 26, 2026
Merged
Conversation
…ce (dotnet#135893) Backport to release/11.0. (cherry picked from commit 8cff292) Co-authored-by: Copilot <[email protected]> Copilot-Session: 362440cb-6282-4636-8d33-5d2e543985c2
|
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. |
Contributor
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Member
Author
|
PTAL @JulieLeeMSFT (since you approved the original pr) @dotnet/jit-contrib |
JulieLeeMSFT
approved these changes
Oct 21, 2026
Member
|
/ba-g Known issue unrelated. |
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.
Fixes Issue #127203
main PR #135893
Description
Backport of #135893 to release/11.0. Only trust a single-edge synthetic root profile when the method has observed hotness or an explicit speed preference, avoiding excessive inlining into short-lived dynamic methods.
Customer Impact
LambdaExpression.Compile()can be more than 10x slower for EntityGraphQL-generated projection trees because the JIT spends excessive time inlining dynamic methods.The main PR measured EntityGraphQL compilation improving from 7.611 ms to 0.352 ms (21.6x faster), and a LINQ-stub repro improving from 5.823 ms to 0.777 ms per query (7.5x faster).
Regression
Reported as a regression from .NET 9 to .NET 10, also affecting .NET 11.
Testing
See #135893.
Risk
Low. Restricts synthetic profile trust for root methods without observed hotness or an explicit speed preference. Inlinees, real PGO, and the existing cctor, size, and call-count exclusions retain their existing behavior.
Note
PR description generated with GitHub Copilot.