src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke

*** 50,60 **** * @param <E> The base class of elements held in this array */ public class AtomicReferenceArray<E> implements java.io.Serializable { private static final long serialVersionUID = -6209656149925076980L; ! private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); private static final long ARRAY; private static final int ABASE; private static final int ASHIFT; private final Object[] array; // must have exact type Object[] --- 50,60 ---- * @param <E> The base class of elements held in this array */ public class AtomicReferenceArray<E> implements java.io.Serializable { private static final long serialVersionUID = -6209656149925076980L; ! private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe(); private static final long ARRAY; private static final int ABASE; private static final int ASHIFT; private final Object[] array; // must have exact type Object[]