Skip to content

Commit

Permalink
use mono_class_interface_offset_with_variance for interface offset in…
Browse files Browse the repository at this point in the history
… MONO_RGCTX_INFO_VIRT_METHOD_CODE (#77113)
  • Loading branch information
kotlarmilos committed Oct 18, 2022
1 parent 10fc8ae commit 8a24ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/mono/mono/mini/mini-generic-sharing.c
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,8 @@ instantiate_info (MonoMemoryManager *mem_manager, MonoRuntimeGenericContextInfoT
mono_class_setup_vtable (info->klass);
// FIXME: Check type load
if (mono_class_is_interface (iface_class)) {
ioffset = mono_class_interface_offset (info->klass, iface_class);
gboolean variance_used;
ioffset = mono_class_interface_offset_with_variance (info->klass, iface_class, &variance_used);
g_assert (ioffset != -1);
} else {
ioffset = 0;
Expand Down
3 changes: 0 additions & 3 deletions src/tests/issues.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,6 @@
<ExcludeList Include="$(XunitTestBinBase)/Loader/classloader/MethodImpl/CovariantReturns/Structs/IncompatibleOverride/**">
<Issue>Crashes during LLVM AOT compilation.</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/Loader/classloader/StaticVirtualMethods/RegressionTests/GitHub_71319/**">
<Issue>https://github.com/dotnet/runtime/issues/71910</Issue>
</ExcludeList>

<ExcludeList Include="$(XunitTestBinBase)/JIT/HardwareIntrinsics/General/HwiOp/CompareVectorWithZero/**">
<Issue>https://github.com/dotnet/runtime/pull/65632#issuecomment-1046294324</Issue>
Expand Down

0 comments on commit 8a24ff0

Please sign in to comment.