Skip to content

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

Merged
bors[bot] merged 1 commit intomainfrom
strict_provenance_atomic_ptr
Jul 31, 2022
Merged

Provide stable equivalent of #![feature(strict_provenance_atomic_ptr)]#23
bors[bot] merged 1 commit intomainfrom
strict_provenance_atomic_ptr

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