-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix Type.GetHashCode for RuntimeTypes w/o MethodTable #97195
Conversation
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Type/TypePropertyTests.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-nativeaot-outerloop |
Azure Pipelines successfully started running 1 pipeline(s). |
The hashcode for these was always 0 before this change.
529e151
to
be47460
Compare
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue Detailsnull
|
@MichalStrehovsky PTLA. It is fixing a minor bug introduced by the RuntimeType refactoring. |
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.
Thanks!
Do we want to add the test you had here before the force push?
My original assumption was that this bug is doing to lead to crash that is not actually the case. It is not functionality bug; it is a perf bug. The test for this bug would have to generate number of types and verify that their hashcode distibution hits some minimum threshold. We do not have tests like for GetHashCode implementations, so building one for RuntimeType did not seem to be worth it. |
The hashcode for these was always 0 before this change.
No description provided.