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. |
|
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