-
Notifications
You must be signed in to change notification settings - Fork 489
epoch: Fix stacked borrows violations #871
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
base: master
Are you sure you want to change the base?
Conversation
fcafef5
to
8e29940
Compare
f25a4cd
to
a81e099
Compare
a81e099
to
e7c8fbf
Compare
e7c8fbf
to
86c1680
Compare
796: epoch: Remove ptr-to-int casts r=taiki-e a=taiki-e Use [this hack](rust-lang/miri#1866 (comment)) to fix compatibility issues with Miri (see #490 (comment) for details). Due to the #545, still not compatible with stacked borrows. This will be fixed by the subsequent PR (#871). Note: this is a breaking change because changes API of Pointable and Pointer traits Fixes #579 881: Remove deprecated items r=taiki-e a=taiki-e This removes the following deprecated items: - crossbeam-epoch: - `CompareAndSetError` - `CompareAndSetOrdering` - `Atomic::compare_and_set` - `Atomic::compare_and_set_weak` - crossbeam-utils: - `AtomicCell::compare_and_swap` Co-authored-by: Taiki Endo <te316e89@gmail.com>
796: epoch: Remove ptr-to-int casts r=taiki-e a=taiki-e Use [this hack](rust-lang/miri#1866 (comment)) to fix compatibility issues with Miri (see #490 (comment) for details). Due to the #545, still not compatible with stacked borrows. This will be fixed by the subsequent PR (#871). Note: this is a breaking change because changes API of Pointable and Pointer traits Fixes #579 Co-authored-by: Taiki Endo <te316e89@gmail.com>
86c1680
to
525ae4f
Compare
a8485b4
to
f93970c
Compare
f93970c
to
9d1ebd2
Compare
48e0dfd
to
be5bcc4
Compare
crossbeam-epoch/src/atomic.rs
Outdated
/// - `ptr` should not be mutably dereferenced by [`Pointable::deref_mut`] concurrently. | ||
unsafe fn deref<'a>(ptr: *mut ()) -> &'a Self; | ||
/// - `ptr` should not be mutably dereferenced by [`Pointable::as_mut_ptr`] concurrently. | ||
unsafe fn as_ptr(ptr: *mut ()) -> *const Self; | ||
|
||
/// Mutably dereferences the given pointer. |
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.
This is no longer a dereference, but I'm not sure what is a good API name and description.
be5bcc4
to
87eecad
Compare
87eecad
to
f0f7323
Compare
f0f7323
to
6bd2fda
Compare
(Given that Miri appears to be trying to move to TB in the long term, I don't see the need to rush to merge this.) |
6bd2fda
to
a3fec7d
Compare
9b332ee
to
3b4893b
Compare
Is this documented anywhere and current? Miri's README currently says:
|
353cb51
to
689bbdc
Compare
Co-authored-by: Imbris <imbrisf@gmail.com>
689bbdc
to
a5fcbd3
Compare
Fixes #545
See #545 (comment) for the reported stacked borrows violations.
Note: this is a breaking change because changes API of Pointable trait