-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Virt call unsafe accessor tests #89220
Virt call unsafe accessor tests #89220
Conversation
Tagging subscribers to this area: @dotnet/area-system-runtime-compilerservices Issue DetailsFixes NativeAOT issues described at #89212 (comment)
|
src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
Show resolved
Hide resolved
src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
Show resolved
Hide resolved
src/tests/baseservices/compilerservices/UnsafeAccessors/UnsafeAccessorsTests.cs
Show resolved
Hide resolved
Yep. This is purely an academic exercise at this point. The entire point of @fanyang-mono and @lambdageek Please don't try to enable this on Mono. We will no longer walk the type hierarchy. |
I'm fine with the more restricted lookup in the interest of shipping something workable in .NET 8. But I think in the future we should make That means CoreCLR would need to walk the |
the defined typed.
@MichalStrehovsky and @lambdageek I've updated CoreCLR to not look through the type hierarchy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Known issue #86532 |
Btw, we do have a way to iterate virtual slots in the managed type system. We just don't have a way to iterate virtual slots intermingled with non-virtual methods introduced on the current type. That one is just a CoreCLR implementation quirk. I don't think such iterator is necessary to implement OOP. |
Makes CoreCLR align with the current NativeAOT implementation and not examine the type hierarchy. See #89212 (comment)
/cc @lambdageek @fanyang-mono