Uh oh!
There was an error while loading. Please reload this page.
[release/11.0-rc1] Fix transition from monomorphic to polymorphic VSD - #132622
Merged
akoeplinger merged 1 commit intoAug 21, 2026
Merged
Conversation
An interface call site initially uses a dispatch stub specialized for one receiver type. After enough misses, the site should be backpatched to a resolve stub to handle polymorphic receivers. On ARM, ARM64, LoongArch64, and RISC-V64, the expired-counter path set `SDF_ResolveBackPatch` but then probed the inline resolve cache. A cache hit there branched directly to the target without processing the flag, leaving the site monomorphic and causing subsequent receiver-type misses to continue through the dispatch stub. Enter the slow resolve path after setting `SDF_ResolveBackPatch` so the call site is backpatched as intended. Also correct the inverted miss-counter handling on LoongArch64 and RISC-V64. This matches the existing x64 behavior. --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 6bd43e03-841f-47ee-80f4-4da985b32a67
|
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: @agocke |
AndyAyersMS
commented
Aug 21, 2026
Member
@jkotas PTAL |
jkotas
approved these changes
Aug 21, 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 freeto 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.
Backport of #132544 to release/11.0-rc1
/cc @AndyAyersMS
Customer Impact
Perf issue on arm64 on many core machines.
Regression
Arm64 VSD implementation has diverged from x64 for a long time, and was able to get trapped in a continually mispredicting mode. The shared misprediction counter writes were causing a high amount of cache coherence overhead, seriously limiting scaling.
Testing
Verified with user app on 32 core Arm64 HW.
Risk
Low. Arm64 (and other arches) now use exact same logic as x64.