This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
Conversation
Merge master to nmirror
CR: morganb, yzha, trylek The primality tests in DictionaryBase and FixedHashTable classes were flawed. First, IsPrime(x) incorrectly returned true for squares of prime numbers (false positives). Second, for very big arguments the multiplication might overflow, which caused the loop to run many times longer than required. Third, for x == int.MaxValue the function incorrectly returned false (false negative). Instead of fixing the loop condition, I simply copied the table of pre-calculated prime numbers from the CoreFX version of the HashHelpers class as Vance and Tomas suggested during the code review. Also put back the linker switch that I incorrectly removed in changeset 1603970 (not related to the fix above). [tfs-changeset: 1606004]
Merge changes from TFS
…rshal GetMarshalClass calkl for CoreCLR [tfs-changeset: 1607476]
Merge changes from TFS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.