Repository navigation
Report failed interface devirtualization lookup - #133767
Merged
jtschuster merged 1 commit intoSep 14, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 71dbc277-e17e-46b5-bad8-5b5cb7646411
|
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: @dotnet/crossgen-contrib |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review issues remain.
Pull request overview
Updates managed interface devirtualization diagnostics to report failed lookups consistently with CoreCLR behavior.
Changes:
- Reports
CORINFO_DEVIRTUALIZATION_FAILED_LOOKUPwhen no implementation is found. - Preserves
CORINFO_DEVIRTUALIZATION_UNKNOWNfor unexpected post-slot failures.
File summaries
| File | Description |
|---|---|
src/coreclr/tools/Common/Compiler/DevirtualizationManager.cs |
Adds failed-lookup diagnostic reporting. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
jkoritzinsky
approved these changes
Sep 12, 2026
Member
Author
|
/ba-g failure is known: #133798 |
jtschuster
added a commit
to jtschuster/runtime
that referenced
this pull request
Sep 18, 2026
Fixes dotnet#133270 When managed devirtualization cannot resolve an interface method to either a class implementation or a default interface implementation, report `CORINFO_DEVIRTUALIZATION_FAILED_LOOKUP` instead of leaving the detail as `CORINFO_DEVIRTUALIZATION_UNKNOWN`. This matches the CoreCLR VM JIT interface behavior. The assignment remains inside the no-class-target path so that an unexpected failure after finding an interface slot continues to report `UNKNOWN` and trigger the diagnostic assertion. > [!NOTE] > This pull request description was drafted with GitHub Copilot.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 #133270
When managed devirtualization cannot resolve an interface method to either a class implementation or a default interface implementation, report
CORINFO_DEVIRTUALIZATION_FAILED_LOOKUPinstead of leaving the detail asCORINFO_DEVIRTUALIZATION_UNKNOWN. This matches the CoreCLR VM JIT interface behavior.The assignment remains inside the no-class-target path so that an unexpected failure after finding an interface slot continues to report
UNKNOWNand trigger the diagnostic assertion.Validation:
./build.sh clr+libs.pretest -rc checked -lc releaseComImportUnimplementedMethodunder composite Crossgen2 with a large version bubble (CompositeBuildMode=1,LargeVersionBubble=1)Note
This pull request description was drafted with GitHub Copilot.