Skip to content

[release/11.0] JIT: Gate single-edge root profile trust on hotness or speed preference - #136165

Merged
steveisok merged 1 commit into
dotnet:release/11.0from
EgorBo:backport-135893-release-11.0
Oct 26, 2026
Merged

steveisok merged 1 commit into
dotnet:release/11.0from
EgorBo:backport-135893-release-11.0

Conversation

@EgorBo

@EgorBo EgorBo commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

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

  • Customer reported
  • Found internally

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

  • Yes
  • No

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.

…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
@EgorBo EgorBo added this to the 11.0.0 milestone Oct 20, 2026
@EgorBo EgorBo added Servicing-consider Issue for next servicing release review area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI labels Oct 20, 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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

@EgorBo

EgorBo commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

PTAL @JulieLeeMSFT (since you approved the original pr) @dotnet/jit-contrib

@EgorBo
EgorBo requested a review from JulieLeeMSFT October 20, 2026 18:07
@steveisok steveisok added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Oct 26, 2026
@steveisok

Copy link
Copy Markdown
Member

/ba-g Known issue unrelated.

@steveisok
steveisok merged commit 9761c51 into dotnet:release/11.0 Oct 26, 2026
132 of 138 checks passed
@EgorBo
EgorBo deleted the backport-135893-release-11.0 branch October 26, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants