Skip to content

HashMaps improvements #1345

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

Merged
merged 2 commits into from
Apr 8, 2019
Merged

HashMaps improvements #1345

merged 2 commits into from
Apr 8, 2019

Conversation

vtrifonov
Copy link
Contributor

@vtrifonov vtrifonov commented Apr 8, 2019

Related to #887
Related to https://github.com/NativeScript/nativescript-angular/issues/1756

When comparing strong/weak references we shouldn't compare them using equals but using ==. Otherwise we risk collisions in hash code generation of two objects to end up with not adding a new object in the strong/weak reference but reusing the old one.

@cla-bot cla-bot bot added the cla: yes label Apr 8, 2019
@vtrifonov vtrifonov requested review from vmutafov and darind April 8, 2019 14:10
@vmutafov vmutafov merged commit 08183eb into master Apr 8, 2019
@vtrifonov vtrifonov deleted the trifonov/map-fix branch April 8, 2019 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants