Skip to content

Commit c4ea964

Browse files
Add missing case for constrained gsharedvt call. (#92347)
1b788f4 added a new value to our MonoRgctxInfoType enum type, but appears that all cases where not full adjusted. Running System.Buffers tests in full AOT hits the assert in info_equal about missing case, https://github.com/dotnet/runtime/blob/0dc5903679606b072adac70a268cdb77d1147b3e/src/mono/mono/mini/mini-generic-sharing.c#L2908. This commit adds the new enum value and align handling similar to other cases added by that commit. Co-authored-by: lateralusX <lateralusx.github@gmail.com>
1 parent 58eb21d commit c4ea964

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mono/mono/mini/mini-generic-sharing.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,8 @@ info_equal (gpointer data1, gpointer data2, MonoRgctxInfoType info_type)
28862886
return data1 == data2;
28872887
case MONO_RGCTX_INFO_VIRT_METHOD:
28882888
case MONO_RGCTX_INFO_VIRT_METHOD_CODE:
2889-
case MONO_RGCTX_INFO_VIRT_METHOD_BOX_TYPE: {
2889+
case MONO_RGCTX_INFO_VIRT_METHOD_BOX_TYPE:
2890+
case MONO_RGCTX_INFO_GSHAREDVT_CONSTRAINED_CALL_INFO: {
28902891
MonoJumpInfoVirtMethod *info1 = (MonoJumpInfoVirtMethod *)data1;
28912892
MonoJumpInfoVirtMethod *info2 = (MonoJumpInfoVirtMethod *)data2;
28922893

0 commit comments

Comments
 (0)