Skip to content
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

Provide stable equivalent of #![feature(strict_provenance_atomic_ptr)] #23

Merged
merged 1 commit into from
Jul 31, 2022

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Jul 31, 2022

This provides stable equivalent of #![feature(strict_provenance_atomic_ptr)].

  • AtomicPtr::fetch_ptr_{add,sub}
  • AtomicPtr::fetch_byte_{add,sub}
  • AtomicPtr::fetch_{or,and,xor}

These APIs are compatible with strict-provenance on cfg(miri).
Otherwise, they are compatible with permissive-provenance.

Once #![feature(strict_provenance_atomic_ptr)] is stabilized, these APIs will be strict-provenance compatible in all cases from the version in which it is stabilized.

(This is also a generalization of what I did in crossbeam-epoch.)

- `AtomicPtr::fetch_ptr_{add,sub}`
- `AtomicPtr::fetch_byte_{add,sub}`
- `AtomicPtr::fetch_{or,and,xor}`

These APIs are compatible with strict-provenance on `cfg(miri)`.
Otherwise, they are compatible with permissive-provenance.
Once `#![feature(strict_provenance_atomic_ptr)]` is stabilized,
these APIs will be strict-provenance compatible in all cases from the
version in which it is stabilized.
@taiki-e
Copy link
Owner Author

taiki-e commented Jul 31, 2022

bors r+

@bors
Copy link
Contributor

bors bot commented Jul 31, 2022

@bors bors bot merged commit c86fcbd into main Jul 31, 2022
@bors bors bot deleted the strict_provenance_atomic_ptr branch July 31, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant