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

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

@@ -508,11 +508,11 @@
     // Support for resetting map in clone
     private void setMap(ConcurrentNavigableMap<E,Object> map) {
         U.putObjectVolatile(this, MAP, map);
     }
 
-    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 MAP;
     static {
         try {
             MAP = U.objectFieldOffset
                 (ConcurrentSkipListSet.class.getDeclaredField("m"));