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

update hashbrown to v0.15 #314

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

conradludgate
Copy link
Contributor

hashbrown removed the RawTable API, requiring dashmap to use HashTable instead. This was the API I wanted dashmap 6 to use initially as the shards being RawTable means unsafe is often necessary.

Due to needing some more RwLock mapping support when it comes to HashTable iterators and such, I designed the RwLockReadGuardDetached which cleans up a fair amount of pointer shenanigans around the codebase.

In the process, I also decided to remove all the unsafe impl Send and make the RawRwLock guard be Send instead, as it seemingly is intended to be.

miri with both stacked and tree borrows seem happy still, and there's a lot less unsafe in the process.

@conradludgate
Copy link
Contributor Author

This PR should be split up - #10 is no longer valid and thus I have removed the SharedValue abstraction as well.

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