Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of IDynamicInterfaceCastable wrt CastCache #108328

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

MichalStrehovsky
Copy link
Member

Fixes #108229.

The actual fix is the addition of an if check where it originally wasn't. I also fixed the other checks for consistency - positive checks are fine to cache, and negative checks against non-interface targets are also fine to cache.

Cc @dotnet/ilc-contrib

Fixes dotnet#108229.

The actual fix is the addition of an `if` check where it originally wasn't. I also fixed the other checks for consistency - positive checks are fine to cache, and negative checks against non-interface targets are also fine to cache.
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(Vlad is OOF.)

@jkotas jkotas merged commit ba9b3ba into dotnet:main Sep 28, 2024
92 of 94 checks passed
MichalStrehovsky added a commit that referenced this pull request Sep 30, 2024
These had to be excluded in #108235 but #108328 fixed them in the meantime. One of these PRs might be serviced for .NET 9 and the other may not, so I'm just reenabling this in a separate PR to make backports easier.
@MichalStrehovsky MichalStrehovsky deleted the fix108229 branch September 30, 2024 06:17
sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
Fixes dotnet#108229.

The actual fix is the addition of an `if` check where it originally wasn't. I also fixed the other checks for consistency - positive checks are fine to cache, and negative checks against non-interface targets are also fine to cache.
MichalStrehovsky added a commit that referenced this pull request Sep 30, 2024
These had to be excluded in #108235 but #108328 fixed them in the meantime. One of these PRs might be serviced for .NET 9 and the other may not, so I'm just reenabling this in a separate PR to make backports easier.
sirntar pushed a commit to sirntar/runtime that referenced this pull request Oct 3, 2024
…108376)

These had to be excluded in dotnet#108235 but dotnet#108328 fixed them in the meantime. One of these PRs might be serviced for .NET 9 and the other may not, so I'm just reenabling this in a separate PR to make backports easier.
lambdageek pushed a commit to lambdageek/runtime that referenced this pull request Oct 3, 2024
…108376)

These had to be excluded in dotnet#108235 but dotnet#108328 fixed them in the meantime. One of these PRs might be serviced for .NET 9 and the other may not, so I'm just reenabling this in a separate PR to make backports easier.
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2024
@MichalStrehovsky
Copy link
Member Author

/backport to release/9.0-staging

@github-actions github-actions bot unlocked this conversation Nov 20, 2024
Copy link
Contributor

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/11931994500

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CastCache caches wrong values for IDynamicInterfaceCastable
2 participants