We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae6e2ab + ca2368d commit ceb3fc0Copy full SHA for ceb3fc0
CHANGELOG.md
@@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
33
34
- CI now uses flags specified in `Cargo.toml` for `rustdoc` tests.
35
- Fixed clippy lints.
36
+- Fixed the memory layout of the internal `UnionNode<T>` type, fixing possible Undefined Behaviour.
37
38
### Removed
39
src/pool/treiber.rs
@@ -44,6 +44,7 @@ pub trait Node: Sized {
44
fn next_mut(&mut self) -> &mut AtomicPtr<Self>;
45
}
46
47
+#[repr(C)]
48
pub union UnionNode<T> {
49
next: ManuallyDrop<AtomicPtr<UnionNode<T>>>,
50
pub data: ManuallyDrop<T>,
0 commit comments