-
Notifications
You must be signed in to change notification settings - Fork 474
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
epoch: Fix UB in Pointable impl of [MaybeUninit<T>] #694
Conversation
@jeehoonkang Are there any changes that you'd like me to make? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for a late response. LGTM, but left a minor comment. Please feel free to merge this.
crossbeam-epoch/src/atomic.rs
Outdated
@@ -238,6 +238,7 @@ impl<T> Pointable for T { | |||
// [`alloc::alloc::Layout::extend`] instead. | |||
#[repr(C)] | |||
struct Array<T> { | |||
/// The number of elements (not the number of bytes). | |||
size: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@taiki-e maybe you also want to rename it to len
?
@jeehoonkang Thanks for the review! I renamed bors r+ |
Build succeeded: |
707: Prepare for the next release r=taiki-e a=taiki-e - crossbeam-epoch 0.9.4 -> 0.9.5 - Fix UB in `Pointable` impl of `[MaybeUninit<T>]` (#694) - Support targets that do not have atomic CAS on stable Rust (#698) - Fix breakage with nightly feature due to rust-lang/rust#84510 (#692) - crossbeam-queue 0.3.1 -> 0.3.2 - Support targets that do not have atomic CAS on stable Rust (#698) - crossbeam-utils 0.8.4 -> 0.8.5 - Add `AtomicCell::fetch_update` (#704) - Support targets that do not have atomic CAS on stable Rust (#698) - crossbeam 0.8.0 -> 0.8.1 - Support targets that do not have atomic CAS on stable Rust (#698) Closes #702 Co-authored-by: Taiki Endo <[email protected]>
Fixes #693