-
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
Put the Crossgen2 assertion check in sync with actual intrinsic count #44624
Conversation
Recent removal of two intrinsics from the CorInfoIntrinsics enumeration started tripping the assertion failure verifying the expected number of intrinsics. I'm just updating the expected count. Thanks Tomas
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.
LGTM, thank you!
Currently lab testing in combination with the CG2 SPC change: #44625 |
@@ -112,7 +112,7 @@ static IntrinsicHashtable InitializeIntrinsicHashtable() | |||
table.Add(CorInfoIntrinsics.CORINFO_INTRINSIC_GetRawHandle, "AllocatorOf", "System", "Activator"); | |||
|
|||
// If this assert fails, make sure to add the new intrinsics to the table above and update the expected count below. | |||
Debug.Assert((int)CorInfoIntrinsics.CORINFO_INTRINSIC_Count == 34, "Please update intrinsic hash table"); | |||
Debug.Assert((int)CorInfoIntrinsics.CORINFO_INTRINSIC_Count == 32, "Please update intrinsic hash table"); |
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.
I think it would better to just delete this assert. It made sense when this was a separate project in CoreRT. It is not the case anymore.
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.
Good point, removed in 2nd commit.
Recent removal of two intrinsics from the CorInfoIntrinsics enumeration
started tripping the assertion failure verifying the expected number
of intrinsics. I'm just updating the expected count.
Thanks
Tomas
/cc @dotnet/crossgen-contrib