Skip to content

Eiminate last uses of UnsafeHolder#8616

Merged
headius merged 2 commits intojruby:10-devfrom
headius:nbhml_varhandles
Feb 9, 2025
Merged

Eiminate last uses of UnsafeHolder#8616
headius merged 2 commits intojruby:10-devfrom
headius:nbhml_varhandles

Conversation

@headius
Copy link
Member

@headius headius commented Feb 9, 2025

This removes the last usage of UnsafeHolder and removes it.

This also migrates NonBlockingHashMapLong to use VarHandle instead of either Unsafe or Atomic* logic. This change also restores atomicity to all logic.

@headius headius added this to the JRuby 10.0.0.0 milestone Feb 9, 2025
This eliminates both the Unsafe code and the Atomic* fallback
logic, plus improves atomicity along a couple paths.
@headius headius requested a review from kares February 9, 2025 06:20
@headius
Copy link
Member Author

headius commented Feb 9, 2025

@kares You did a conversion long ago to support NonBlockingHashMapLong without Unsafe, could you review this to make sure I removed everything correctly?

@headius headius merged commit ce39f24 into jruby:10-dev Feb 9, 2025
54 of 72 checks passed
@headius headius deleted the nbhml_varhandles branch February 9, 2025 06:29
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