Skip to content
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

OpenHashMap doesn't track deleted records correctly #9513

Closed
scabug opened this issue Oct 10, 2015 · 3 comments
Closed

OpenHashMap doesn't track deleted records correctly #9513

scabug opened this issue Oct 10, 2015 · 3 comments
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Oct 10, 2015

The OpenHashMap class doesn't decrement its deleted count (of deleted hash table entries that haven't been re-used) when an entry is placed into a previously-used slot.

The effect is that deleted only grows—with every entry removed, irrespective of whether removed entries were re-used with a subsequent put()—causing the table to be expanded prematurely (at which point deleted is reset to zero).

@scabug
Copy link
Author

scabug commented Oct 10, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9513?orig=1
Reporter: Mike (mike)
Assignee: Mike (mike)
Affected Versions: 2.11.7

@scabug
Copy link
Author

scabug commented Oct 10, 2015

Mike (mike) said:
scala/scala#4798

@scabug
Copy link
Author

scabug commented Oct 15, 2015

Mike (mike) said:
merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant