Skip to content

Bucket size of zero is not valid. For bucketless, use small.#5413

Merged
headius merged 2 commits intojruby:masterfrom
headius:fix_to_h
Nov 5, 2018
Merged

Bucket size of zero is not valid. For bucketless, use small.#5413
headius merged 2 commits intojruby:masterfrom
headius:fix_to_h

Conversation

@headius
Copy link
Member

@headius headius commented Nov 5, 2018

This implementation supplied 0 for buckets which causes the older RubyHash impl to crash when resizing. I believe what was intended was to use a smallest-possible Hash and slowly fill it, so I modified the logic to use the small hash paths.

@headius headius added this to the JRuby 9.2.1.0 milestone Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant