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

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

@@ -1008,11 +1008,11 @@
     public Spliterator<E> spliterator() {
         return new PBQSpliterator<E>(this, null, 0, -1);
     }
 
     // Unsafe mechanics
-    private static final sun.misc.Unsafe U = sun.misc.Unsafe.getUnsafe();
+    private static final jdk.internal.misc.Unsafe U = jdk.internal.misc.Unsafe.getUnsafe();
     private static final long ALLOCATIONSPINLOCK;
     static {
         try {
             ALLOCATIONSPINLOCK = U.objectFieldOffset
                 (PriorityBlockingQueue.class.getDeclaredField("allocationSpinLock"));