Skip to content
Merged
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
5 changes: 5 additions & 0 deletions library/core/src/ptr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
//! Allocations must behave like "normal" memory: in particular, reads must not have
//! side-effects, and writes must become visible to other threads using the usual synchronization
//! primitives.
//! Allocations must support all atomic operations that are available for the target (as
//! determined by the `target_has_atomic*` set of cfg flags).
//! The precise instructions used for atomic operations are generally not guaranteed, so portable
//! software should place all Rust allocations in memory regions that support all atomic
//! instructions.
//!
//! For any allocation with `base` address, `size`, and a set of
//! `addresses`, the following are guaranteed:
Expand Down
Loading