public class UtilUnsafe
extends java.lang.Object
Unsafe
object. Unsafe
is required to allow efficient CAS operations on arrays. Note that the
versions in java.util.concurrent.atomic
, such as AtomicLongArray
, require extra memory ordering
guarantees which are generally not needed in these algorithms and are also
expensive on most processors.Modifier and Type | Method and Description |
---|---|
static sun.misc.Unsafe |
getUnsafe()
Fetch the Unsafe.
|