issues
search
xacrimon
/
dashmap
Blazing fast concurrent HashMap for Rust.
MIT License
2.84k
stars
140
forks
source link
Fix soundness bug and refactor away unnecessary UnsafeCell.
#290
Open
Bwallker
opened
7 months ago
Bwallker
commented
7 months ago
Fix a potential soundness bug by using ManuallyDrop.
Change SharedValue to contain a T instead of a UnsafeCell
and remove as_ptr method.
Swap several calls to
HashMap::get_key_value
with calls to
Hashmap::get_key_value_mut
in order to make using UnsafeCell redundant.
Make unsafe blocks smaller and more refined.
HashMap::get_key_value
with calls toHashmap::get_key_value_mut
in order to make using UnsafeCell redundant.