src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java

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

*** 536,546 **** } private static final long serialVersionUID = -3375979862319811754L; // Unsafe mechanics ! private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); private static final long ITEM; private static final long NEXT; private static final long WAITER; static { try { --- 536,546 ---- } private static final long serialVersionUID = -3375979862319811754L; // Unsafe mechanics ! private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe(); private static final long ITEM; private static final long NEXT; private static final long WAITER; static { try {
*** 1562,1572 **** } } // Unsafe mechanics ! private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe(); private static final long HEAD; private static final long TAIL; private static final long SWEEPVOTES; static { try { --- 1562,1572 ---- } } // Unsafe mechanics ! private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe(); private static final long HEAD; private static final long TAIL; private static final long SWEEPVOTES; static { try {