Type Alias mmtk::policy::sft_map::AtomicDoubleWord

source ·
type AtomicDoubleWord = AtomicU128;
Expand description

We store raw pointer as a double word using atomics. We use portable_atomic. It provides non locking atomic operations where possible, and use a locking operation as the fallback. Rust only provides AtomicU128 for some platforms, and do not provide the type on x86_64-linux, as some earlier x86_64 CPUs do not have 128 bits atomic instructions. The crate portable_atomic works around the problem with a runtime detection to see if 128 bits atomic instructions are available.

Aliased Type§

struct AtomicDoubleWord {
    pub(crate) inner: AtomicU128,
}

Fields§

§inner: AtomicU128