Skip to content

Expand WeakMap to allow floats and fixnums#8009

Merged
headius merged 1 commit intojruby:masterfrom
headius:weakmap_numerics
Nov 29, 2023
Merged

Expand WeakMap to allow floats and fixnums#8009
headius merged 1 commit intojruby:masterfrom
headius:weakmap_numerics

Conversation

@headius
Copy link
Member

@headius headius commented Nov 10, 2023

They will use value comparisons rather than identity comparisons to mimic CRuby's behavior for immediate values.

Fixes #7862

They will use value comparisons rather than identity comparisons
to mimic CRuby's behavior for immediate values.

Fixes jruby#7862
@JasonLunn
Copy link
Contributor

Thank you for circling back to this issue. Is the right way to enhance the spec to add it the spec in this PR, or should a separate PR go to http://github.com/ruby/spec ?

@headius
Copy link
Member Author

headius commented Nov 11, 2023

@JasonLunn either way works! Commits to the specs in the JRuby repository eventually merge back to the main spec repository and vice versa. If you want to submit a pull request to my repository for this branch, I can merge it in and we can confirm it works in CI.

@headius headius merged commit 725c5cb into jruby:master Nov 29, 2023
@headius headius deleted the weakmap_numerics branch November 29, 2023 03:11
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.

Ruby 2.7 conformance: ObjectSpace::WeakMap is broken for FixNum keys

4 participants