Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- CI now uses flags specified in `Cargo.toml` for `rustdoc` tests.
- Fixed clippy lints.
- Fixed the memory layout of the internal `UnionNode<T>` type, fixing possible Undefined Behaviour.

### Removed

Expand Down
1 change: 1 addition & 0 deletions src/pool/treiber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub trait Node: Sized {
fn next_mut(&mut self) -> &mut AtomicPtr<Self>;
}

#[repr(C)]
pub union UnionNode<T> {
next: ManuallyDrop<AtomicPtr<UnionNode<T>>>,
pub data: ManuallyDrop<T>,
Expand Down