public class UnsafeAccess extends Object
AtomicReferenceFieldUpdater
and similar but their performance is arguably worse than the DIY approach
(depending on JVM version) while Unsafe intrinsification is a far lesser challenge for JIT compilers.
AtomicReferenceArray
.
Modifier and Type | Field and Description |
---|---|
static boolean |
SUPPORTS_GET_AND_SET |
static sun.misc.Unsafe |
UNSAFE |
Constructor and Description |
---|
UnsafeAccess() |
Copyright © 2008–2020 The Netty Project. All rights reserved.