changeset 14551:98f89fe2b722

8140606: Update library code to use internal Unsafe Reviewed-by: alanb, mchung, psandoz, weijun
author chegar
date Wed, 11 Nov 2015 09:19:12 +0000
parents f20334e7b5c3
children eaf66e3285c8
files make/src/classes/build/tools/x11wrappergen/WrapperGenerator.java src/java.base/aix/classes/sun/nio/ch/AixPollPort.java src/java.base/linux/classes/sun/nio/ch/EPoll.java src/java.base/linux/classes/sun/nio/fs/LinuxDosFileAttributeView.java src/java.base/linux/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java src/java.base/macosx/classes/sun/nio/ch/KQueue.java src/java.base/share/classes/java/io/File.java src/java.base/share/classes/java/io/ObjectInputStream.java src/java.base/share/classes/java/io/ObjectStreamClass.java src/java.base/share/classes/java/lang/Class.java src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java src/java.base/share/classes/java/lang/invoke/MethodHandleStatics.java src/java.base/share/classes/java/math/BigDecimal.java src/java.base/share/classes/java/math/BigInteger.java src/java.base/share/classes/java/net/Inet6Address.java src/java.base/share/classes/java/net/InetAddress.java src/java.base/share/classes/java/net/InetSocketAddress.java src/java.base/share/classes/java/nio/MappedByteBuffer.java src/java.base/share/classes/java/util/Random.java src/java.base/share/classes/java/util/concurrent/CompletableFuture.java src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListSet.java src/java.base/share/classes/java/util/concurrent/CopyOnWriteArrayList.java src/java.base/share/classes/java/util/concurrent/CountedCompleter.java src/java.base/share/classes/java/util/concurrent/Exchanger.java src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java src/java.base/share/classes/java/util/concurrent/FutureTask.java src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java src/java.base/share/classes/java/util/concurrent/Phaser.java src/java.base/share/classes/java/util/concurrent/PriorityBlockingQueue.java src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java src/java.base/share/classes/java/util/concurrent/SynchronousQueue.java src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicMarkableReference.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java src/java.base/share/classes/java/util/concurrent/atomic/AtomicStampedReference.java src/java.base/share/classes/java/util/concurrent/atomic/Striped64.java src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.java src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java src/java.base/share/classes/java/util/zip/CRC32C.java src/java.base/share/classes/jdk/internal/misc/SharedSecrets.java src/java.base/share/classes/sun/invoke/anon/AnonymousClassLoader.java src/java.base/share/classes/sun/misc/InnocuousThread.java src/java.base/share/classes/sun/misc/ManagedLocalsThread.java src/java.base/share/classes/sun/nio/ch/NativeObject.java src/java.base/share/classes/sun/nio/ch/Util.java src/java.base/share/classes/sun/nio/fs/Cancellable.java src/java.base/share/classes/sun/nio/fs/NativeBuffer.java src/java.base/share/classes/sun/nio/fs/NativeBuffers.java src/java.base/share/classes/sun/reflect/AccessorGenerator.java src/java.base/share/classes/sun/reflect/ClassDefiner.java src/java.base/share/classes/sun/reflect/FieldInfo.java src/java.base/share/classes/sun/reflect/MagicAccessorImpl.java src/java.base/share/classes/sun/reflect/ReflectionFactory.java src/java.base/share/classes/sun/reflect/UnsafeFieldAccessorImpl.java src/java.base/share/classes/sun/reflect/UnsafeQualifiedFieldAccessorImpl.java src/java.base/share/classes/sun/reflect/UnsafeQualifiedStaticFieldAccessorImpl.java src/java.base/share/classes/sun/reflect/UnsafeStaticFieldAccessorImpl.java src/java.base/share/classes/sun/reflect/misc/ReflectUtil.java src/java.base/solaris/classes/sun/nio/ch/EventPortWrapper.java src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java src/java.base/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java src/java.base/solaris/classes/sun/nio/fs/SolarisWatchService.java src/java.base/windows/classes/sun/nio/ch/Iocp.java src/java.base/windows/classes/sun/nio/ch/PendingIoCache.java src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java src/java.base/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java src/java.base/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java src/java.base/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java src/java.base/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java src/java.base/windows/classes/sun/nio/fs/WindowsWatchService.java src/java.desktop/share/classes/sun/awt/AWTAccessor.java src/java.desktop/share/classes/sun/font/StrikeCache.java src/java.desktop/share/classes/sun/java2d/pipe/RenderBuffer.java src/java.desktop/share/classes/sun/swing/SwingAccessor.java src/java.desktop/unix/classes/sun/awt/X11/MotifDnDConstants.java src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java src/java.desktop/unix/classes/sun/awt/X11/Native.java src/java.desktop/unix/classes/sun/awt/X11/UnsafeXDisposerRecord.java src/java.desktop/unix/classes/sun/awt/X11/WindowPropertyGetter.java src/java.desktop/unix/classes/sun/awt/X11/XAtom.java src/java.desktop/unix/classes/sun/awt/X11/XDnDDragSourceProtocol.java src/java.desktop/unix/classes/sun/awt/X11/XDnDDropTargetProtocol.java src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java src/java.desktop/unix/classes/sun/awt/X11/XEmbedHelper.java src/java.desktop/unix/classes/sun/awt/X11/XKeysym.java src/java.desktop/unix/classes/sun/awt/X11/XQueryTree.java src/java.desktop/unix/classes/sun/awt/X11/XTranslateCoordinates.java src/java.desktop/unix/classes/sun/awt/X11/XWM.java src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java src/java.desktop/unix/classes/sun/awt/X11/keysym2ucs.h src/java.management/share/classes/sun/management/BaseOperatingSystemImpl.java src/java.management/share/classes/sun/management/ManagementFactoryHelper.java src/java.security.jgss/share/classes/sun/security/krb5/KerberosSecrets.java src/java.security.jgss/share/classes/sun/security/krb5/PrincipalName.java
diffstat 120 files changed, 150 insertions(+), 150 deletions(-) [+]
line wrap: on
line diff
--- a/make/src/classes/build/tools/x11wrappergen/WrapperGenerator.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/make/src/classes/build/tools/x11wrappergen/WrapperGenerator.java	Wed Nov 11 09:19:12 2015 +0000
@@ -841,7 +841,7 @@
                 pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" );
 
                 pw.println("package "+package_name+";\n");
-                pw.println("import sun.misc.*;\n");
+                pw.println("import jdk.internal.misc.Unsafe;\n");
                 pw.println("import sun.util.logging.PlatformLogger;");
                 String baseClass = stp.getBaseClass();
                 if (baseClass == null) {
@@ -941,7 +941,7 @@
             pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" );
 
             pw.println("package "+package_name+";\n");
-            pw.println("import sun.misc.Unsafe;\n");
+            pw.println("import jdk.internal.misc.Unsafe;\n");
             pw.println("class " + ft.getName() + " {");
             pw.println("\tprivate static Unsafe unsafe = XlibWrapper.unsafe;");
             pw.println("\tprivate boolean __executed = false;");
--- a/src/java.base/aix/classes/sun/nio/ch/AixPollPort.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/aix/classes/sun/nio/ch/AixPollPort.java	Wed Nov 11 09:19:12 2015 +0000
@@ -34,7 +34,7 @@
 import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.locks.ReentrantLock;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * AsynchronousChannelGroup implementation based on the AIX pollset framework.
--- a/src/java.base/linux/classes/sun/nio/ch/EPoll.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/linux/classes/sun/nio/ch/EPoll.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.nio.ch;
 
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Provides access to the Linux epoll facility.
--- a/src/java.base/linux/classes/sun/nio/fs/LinuxDosFileAttributeView.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/linux/classes/sun/nio/fs/LinuxDosFileAttributeView.java	Wed Nov 11 09:19:12 2015 +0000
@@ -29,7 +29,7 @@
 import java.util.Map;
 import java.util.Set;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.UnixNativeDispatcher.*;
 import static sun.nio.fs.UnixConstants.*;
--- a/src/java.base/linux/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/linux/classes/sun/nio/fs/LinuxUserDefinedFileAttributeView.java	Wed Nov 11 09:19:12 2015 +0000
@@ -29,7 +29,7 @@
 import java.nio.ByteBuffer;
 import java.io.IOException;
 import java.util.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.UnixConstants.*;
 import static sun.nio.fs.LinuxNativeDispatcher.*;
--- a/src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/linux/classes/sun/nio/fs/LinuxWatchService.java	Wed Nov 11 09:19:12 2015 +0000
@@ -30,7 +30,7 @@
 import java.security.PrivilegedAction;
 import java.util.*;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.UnixNativeDispatcher.*;
 import static sun.nio.fs.UnixConstants.*;
--- a/src/java.base/macosx/classes/sun/nio/ch/KQueue.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/macosx/classes/sun/nio/ch/KQueue.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.nio.ch;
 
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Provides access to the BSD kqueue facility.
--- a/src/java.base/share/classes/java/io/File.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/io/File.java	Wed Nov 11 09:19:12 2015 +0000
@@ -2184,10 +2184,10 @@
 
     private static final long PATH_OFFSET;
     private static final long PREFIX_LENGTH_OFFSET;
-    private static final sun.misc.Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
     static {
         try {
-            sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+            jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
             PATH_OFFSET = unsafe.objectFieldOffset(
                     File.class.getDeclaredField("path"));
             PREFIX_LENGTH_OFFSET = unsafe.objectFieldOffset(
--- a/src/java.base/share/classes/java/io/ObjectInputStream.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/io/ObjectInputStream.java	Wed Nov 11 09:19:12 2015 +0000
@@ -40,7 +40,7 @@
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
 import static java.io.ObjectStreamClass.processQueue;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.reflect.misc.ReflectUtil;
 
 /**
--- a/src/java.base/share/classes/java/io/ObjectStreamClass.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/io/ObjectStreamClass.java	Wed Nov 11 09:19:12 2015 +0000
@@ -48,7 +48,7 @@
 import java.util.Set;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.ConcurrentMap;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.reflect.CallerSensitive;
 import sun.reflect.Reflection;
 import sun.reflect.ReflectionFactory;
--- a/src/java.base/share/classes/java/lang/Class.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/Class.java	Wed Nov 11 09:19:12 2015 +0000
@@ -55,7 +55,7 @@
 import java.util.HashMap;
 import java.util.Objects;
 import java.util.StringJoiner;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import jdk.internal.HotSpotIntrinsicCandidate;
 import sun.reflect.CallerSensitive;
 import sun.reflect.ConstantPool;
--- a/src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package java.lang.invoke;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import java.lang.reflect.Method;
 import java.util.Arrays;
 import sun.invoke.util.VerifyAccess;
--- a/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import jdk.internal.org.objectweb.asm.*;
 import sun.invoke.util.BytecodeDescriptor;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.security.action.GetPropertyAction;
 
 import java.io.FilePermission;
--- a/src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/invoke/InvokerBytecodeGenerator.java	Wed Nov 11 09:19:12 2015 +0000
@@ -775,7 +775,7 @@
         // Sample classes from each package we are willing to bind to statically:
         java.lang.Object.class,
         java.util.Arrays.class,
-        sun.misc.Unsafe.class
+        jdk.internal.misc.Unsafe.class
         //MethodHandle.class already covered
     };
 
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java	Wed Nov 11 09:19:12 2015 +0000
@@ -50,7 +50,7 @@
     static native int getMembers(Class<?> defc, String matchName, String matchSig,
             int matchFlags, Class<?> caller, int skip, MemberName[] results);
 
-    /// Field layout queries parallel to sun.misc.Unsafe:
+    /// Field layout queries parallel to jdk.internal.misc.Unsafe:
     static native long objectFieldOffset(MemberName self);  // e.g., returns vmindex
     static native long staticFieldOffset(MemberName self);  // e.g., returns vmindex
     static native Object staticFieldBase(MemberName self);  // e.g., returns clazz
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandleStatics.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandleStatics.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * This class consists exclusively of static names internal to the
--- a/src/java.base/share/classes/java/math/BigDecimal.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/math/BigDecimal.java	Wed Nov 11 09:19:12 2015 +0000
@@ -3726,12 +3726,12 @@
     }
 
     private static class UnsafeHolder {
-        private static final sun.misc.Unsafe unsafe;
+        private static final jdk.internal.misc.Unsafe unsafe;
         private static final long intCompactOffset;
         private static final long intValOffset;
         static {
             try {
-                unsafe = sun.misc.Unsafe.getUnsafe();
+                unsafe = jdk.internal.misc.Unsafe.getUnsafe();
                 intCompactOffset = unsafe.objectFieldOffset
                     (BigDecimal.class.getDeclaredField("intCompact"));
                 intValOffset = unsafe.objectFieldOffset
--- a/src/java.base/share/classes/java/math/BigInteger.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/math/BigInteger.java	Wed Nov 11 09:19:12 2015 +0000
@@ -4526,12 +4526,12 @@
 
     // Support for resetting final fields while deserializing
     private static class UnsafeHolder {
-        private static final sun.misc.Unsafe unsafe;
+        private static final jdk.internal.misc.Unsafe unsafe;
         private static final long signumOffset;
         private static final long magOffset;
         static {
             try {
-                unsafe = sun.misc.Unsafe.getUnsafe();
+                unsafe = jdk.internal.misc.Unsafe.getUnsafe();
                 signumOffset = unsafe.objectFieldOffset
                     (BigInteger.class.getDeclaredField("signum"));
                 magOffset = unsafe.objectFieldOffset
--- a/src/java.base/share/classes/java/net/Inet6Address.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/net/Inet6Address.java	Wed Nov 11 09:19:12 2015 +0000
@@ -576,11 +576,11 @@
     };
 
     private static final long FIELDS_OFFSET;
-    private static final sun.misc.Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
 
     static {
         try {
-            sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+            jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
             FIELDS_OFFSET = unsafe.objectFieldOffset(
                     Inet6Address.class.getDeclaredField("holder6"));
             UNSAFE = unsafe;
--- a/src/java.base/share/classes/java/net/InetAddress.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/net/InetAddress.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1493,11 +1493,11 @@
     }
 
     private static final long FIELDS_OFFSET;
-    private static final sun.misc.Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
 
     static {
         try {
-            sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+            jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
             FIELDS_OFFSET = unsafe.objectFieldOffset(
                 InetAddress.class.getDeclaredField("holder")
             );
--- a/src/java.base/share/classes/java/net/InetSocketAddress.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/net/InetSocketAddress.java	Wed Nov 11 09:19:12 2015 +0000
@@ -303,10 +303,10 @@
     }
 
     private static final long FIELDS_OFFSET;
-    private static final sun.misc.Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
     static {
         try {
-            sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+            jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
             FIELDS_OFFSET = unsafe.objectFieldOffset(
                     InetSocketAddress.class.getDeclaredField("holder"));
             UNSAFE = unsafe;
--- a/src/java.base/share/classes/java/nio/MappedByteBuffer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/nio/MappedByteBuffer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package java.nio;
 
 import java.io.FileDescriptor;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 
 /**
--- a/src/java.base/share/classes/java/util/Random.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/Random.java	Wed Nov 11 09:19:12 2015 +0000
@@ -34,7 +34,7 @@
 import java.util.stream.LongStream;
 import java.util.stream.StreamSupport;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * An instance of this class is used to generate a stream of
--- a/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Wed Nov 11 09:19:12 2015 +0000
@@ -2775,7 +2775,7 @@
     }
 
     // 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 RESULT;
     private static final long STACK;
     private static final long NEXT;
--- a/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentHashMap.java	Wed Nov 11 09:19:12 2015 +0000
@@ -297,7 +297,7 @@
      * Table accesses require volatile/atomic reads, writes, and
      * CASes.  Because there is no other way to arrange this without
      * adding further indirections, we use intrinsics
-     * (sun.misc.Unsafe) operations.
+     * (jdk.internal.misc.Unsafe) operations.
      *
      * We use the top (sign) bit of Node hash fields for control
      * purposes -- it is available anyway because of addressing
@@ -3287,7 +3287,7 @@
             return true;
         }
 
-        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 LOCKSTATE;
         static {
             try {
@@ -6330,7 +6330,7 @@
     }
 
     // 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 SIZECTL;
     private static final long TRANSFERINDEX;
     private static final long BASECOUNT;
--- a/src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedDeque.java	Wed Nov 11 09:19:12 2015 +0000
@@ -326,7 +326,7 @@
 
         // 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 PREV;
         private static final long ITEM;
         private static final long NEXT;
@@ -1608,7 +1608,7 @@
 
     // 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 HEAD;
     private static final long TAIL;
     static {
--- a/src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentLinkedQueue.java	Wed Nov 11 09:19:12 2015 +0000
@@ -929,7 +929,7 @@
 
     // 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 HEAD;
     private static final long TAIL;
     private static final long ITEM;
--- a/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java	Wed Nov 11 09:19:12 2015 +0000
@@ -534,7 +534,7 @@
 
         // 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 VALUE;
         private static final long NEXT;
 
@@ -614,7 +614,7 @@
         }
 
         // 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 RIGHT;
         static {
             try {
@@ -3596,7 +3596,7 @@
     }
 
     // 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 HEAD;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListSet.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListSet.java	Wed Nov 11 09:19:12 2015 +0000
@@ -510,7 +510,7 @@
         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 {
--- a/src/java.base/share/classes/java/util/concurrent/CopyOnWriteArrayList.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/CopyOnWriteArrayList.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1545,7 +1545,7 @@
     private void resetLock() {
         U.putObjectVolatile(this, LOCK, new Object());
     }
-    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 LOCK;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/CountedCompleter.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/CountedCompleter.java	Wed Nov 11 09:19:12 2015 +0000
@@ -754,7 +754,7 @@
     protected void setRawResult(T t) { }
 
     // 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 PENDING;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/Exchanger.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/Exchanger.java	Wed Nov 11 09:19:12 2015 +0000
@@ -625,7 +625,7 @@
     }
 
     // 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 BOUND;
     private static final long SLOT;
     private static final long MATCH;
--- a/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1337,7 +1337,7 @@
         }
 
         // Unsafe mechanics. Note that some are (and must be) the same as in FJP
-        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 QLOCK;
         private static final int ABASE;
         private static final int ASHIFT;
@@ -3452,7 +3452,7 @@
     }
 
     // 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 CTL;
     private static final long RUNSTATE;
     private static final int ABASE;
--- a/src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ForkJoinTask.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1517,7 +1517,7 @@
     }
 
     // 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 STATUS;
 
     static {
--- a/src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java	Wed Nov 11 09:19:12 2015 +0000
@@ -185,7 +185,7 @@
     }
 
     // Set up to allow setting thread fields in constructor
-    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 THREADLOCALS;
     private static final long INHERITABLETHREADLOCALS;
     private static final long INHERITEDACCESSCONTROLCONTEXT;
@@ -248,7 +248,7 @@
          */
         private static ThreadGroup createThreadGroup() {
             try {
-                sun.misc.Unsafe u = sun.misc.Unsafe.getUnsafe();
+                jdk.internal.misc.Unsafe u = jdk.internal.misc.Unsafe.getUnsafe();
                 long tg = u.objectFieldOffset
                     (Thread.class.getDeclaredField("group"));
                 long gp = u.objectFieldOffset
--- a/src/java.base/share/classes/java/util/concurrent/FutureTask.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/FutureTask.java	Wed Nov 11 09:19:12 2015 +0000
@@ -484,7 +484,7 @@
     }
 
     // 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 STATE;
     private static final long RUNNER;
     private static final long WAITERS;
--- a/src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/LinkedTransferQueue.java	Wed Nov 11 09:19:12 2015 +0000
@@ -538,7 +538,7 @@
         private static final long serialVersionUID = -3375979862319811754L;
 
         // 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 ITEM;
         private static final long NEXT;
         private static final long WAITER;
@@ -1564,7 +1564,7 @@
 
     // 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 HEAD;
     private static final long TAIL;
     private static final long SWEEPVOTES;
--- a/src/java.base/share/classes/java/util/concurrent/Phaser.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/Phaser.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1137,7 +1137,7 @@
 
     // 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 STATE;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/PriorityBlockingQueue.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/PriorityBlockingQueue.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1010,7 +1010,7 @@
     }
 
     // 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 {
--- a/src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1596,7 +1596,7 @@
         }
 
         // 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 CTL;
         private static final long TAIL;
         private static final long HEAD;
--- a/src/java.base/share/classes/java/util/concurrent/SynchronousQueue.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/SynchronousQueue.java	Wed Nov 11 09:19:12 2015 +0000
@@ -283,7 +283,7 @@
             }
 
             // 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 MATCH;
             private static final long NEXT;
 
@@ -509,7 +509,7 @@
         }
 
         // 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 HEAD;
         static {
             try {
@@ -575,7 +575,7 @@
             }
 
             // 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 ITEM;
             private static final long NEXT;
 
@@ -817,7 +817,7 @@
             }
         }
 
-        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 HEAD;
         private static final long TAIL;
         private static final long CLEANME;
--- a/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/ThreadLocalRandom.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1050,7 +1050,7 @@
     }
 
     // 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 SEED;
     private static final long PROBE;
     private static final long SECONDARY;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicBoolean.java	Wed Nov 11 09:19:12 2015 +0000
@@ -49,7 +49,7 @@
 public class AtomicBoolean implements java.io.Serializable {
     private static final long serialVersionUID = 4654671469794556979L;
 
-    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 VALUE;
 
     static {
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Wed Nov 11 09:19:12 2015 +0000
@@ -54,7 +54,7 @@
 public class AtomicInteger extends Number implements java.io.Serializable {
     private static final long serialVersionUID = 6214790243416807050L;
 
-    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 VALUE;
 
     static {
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerArray.java	Wed Nov 11 09:19:12 2015 +0000
@@ -49,7 +49,7 @@
 public class AtomicIntegerArray implements java.io.Serializable {
     private static final long serialVersionUID = 2862133569453604235L;
 
-    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 int ABASE;
     private static final int ASHIFT;
     private final int[] array;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicIntegerFieldUpdater.java	Wed Nov 11 09:19:12 2015 +0000
@@ -367,7 +367,7 @@
      */
     private static class AtomicIntegerFieldUpdaterImpl<T>
             extends AtomicIntegerFieldUpdater<T> {
-        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 final long offset;
         private final Class<T> tclass;
         private final Class<?> cclass;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLong.java	Wed Nov 11 09:19:12 2015 +0000
@@ -54,7 +54,7 @@
 public class AtomicLong extends Number implements java.io.Serializable {
     private static final long serialVersionUID = 1927816293512124184L;
 
-    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 VALUE;
 
     /**
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongArray.java	Wed Nov 11 09:19:12 2015 +0000
@@ -48,7 +48,7 @@
 public class AtomicLongArray implements java.io.Serializable {
     private static final long serialVersionUID = -2308431214976778248L;
 
-    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 int ABASE;
     private static final int ASHIFT;
     private final long[] array;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicLongFieldUpdater.java	Wed Nov 11 09:19:12 2015 +0000
@@ -366,7 +366,7 @@
     }
 
     private static class CASUpdater<T> extends AtomicLongFieldUpdater<T> {
-        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 final long offset;
         private final Class<T> tclass;
         private final Class<?> cclass;
@@ -490,7 +490,7 @@
 
 
     private static class LockedUpdater<T> extends AtomicLongFieldUpdater<T> {
-        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 final long offset;
         private final Class<T> tclass;
         private final Class<?> cclass;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicMarkableReference.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicMarkableReference.java	Wed Nov 11 09:19:12 2015 +0000
@@ -190,7 +190,7 @@
 
     // 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 PAIR;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReference.java	Wed Nov 11 09:19:12 2015 +0000
@@ -49,7 +49,7 @@
 public class AtomicReference<V> implements java.io.Serializable {
     private static final long serialVersionUID = -1848883965231344442L;
 
-    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 VALUE;
 
     static {
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceArray.java	Wed Nov 11 09:19:12 2015 +0000
@@ -52,7 +52,7 @@
 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 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;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicReferenceFieldUpdater.java	Wed Nov 11 09:19:12 2015 +0000
@@ -284,7 +284,7 @@
 
     private static final class AtomicReferenceFieldUpdaterImpl<T,V>
         extends AtomicReferenceFieldUpdater<T,V> {
-        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 final long offset;
         private final Class<T> tclass;
         private final Class<V> vclass;
--- a/src/java.base/share/classes/java/util/concurrent/atomic/AtomicStampedReference.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/AtomicStampedReference.java	Wed Nov 11 09:19:12 2015 +0000
@@ -190,7 +190,7 @@
 
     // 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 PAIR;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/atomic/Striped64.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/atomic/Striped64.java	Wed Nov 11 09:19:12 2015 +0000
@@ -133,7 +133,7 @@
         }
 
         // 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 VALUE;
         static {
             try {
@@ -372,7 +372,7 @@
     }
 
     // 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 BASE;
     private static final long CELLSBUSY;
     private static final long PROBE;
--- a/src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedLongSynchronizer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1821,7 +1821,7 @@
      * are at it, we do the same for other CASable fields (which could
      * otherwise be done with atomic field updaters).
      */
-    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 STATE;
     private static final long HEAD;
     private static final long TAIL;
--- a/src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/locks/AbstractQueuedSynchronizer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -524,7 +524,7 @@
             return U.compareAndSwapObject(this, NEXT, expect, update);
         }
 
-        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 NEXT;
         static final long PREV;
         private static final long THREAD;
@@ -2285,7 +2285,7 @@
      * are at it, we do the same for other CASable fields (which could
      * otherwise be done with atomic field updaters).
      */
-    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 STATE;
     private static final long HEAD;
     private static final long TAIL;
--- a/src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/locks/LockSupport.java	Wed Nov 11 09:19:12 2015 +0000
@@ -394,7 +394,7 @@
     }
 
     // Hotspot implementation via intrinsics API
-    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 PARKBLOCKER;
     private static final long SECONDARY;
     static {
--- a/src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/locks/ReentrantReadWriteLock.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1501,7 +1501,7 @@
     }
 
     // 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 TID;
     static {
         try {
--- a/src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java	Wed Nov 11 09:19:12 2015 +0000
@@ -1398,7 +1398,7 @@
     }
 
     // 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 STATE;
     private static final long WHEAD;
     private static final long WTAIL;
--- a/src/java.base/share/classes/java/util/zip/CRC32C.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/java/util/zip/CRC32C.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,7 +28,7 @@
 import java.nio.ByteOrder;
 
 import jdk.internal.HotSpotIntrinsicCandidate;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.nio.ch.DirectBuffer;
 
 /**
--- a/src/java.base/share/classes/jdk/internal/misc/SharedSecrets.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/jdk/internal/misc/SharedSecrets.java	Wed Nov 11 09:19:12 2015 +0000
@@ -30,7 +30,7 @@
 import java.io.FileDescriptor;
 import java.security.ProtectionDomain;
 import java.security.AccessController;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /** A repository of "shared secrets", which are a mechanism for
     calling implementation-private methods in another package without
--- a/src/java.base/share/classes/sun/invoke/anon/AnonymousClassLoader.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/invoke/anon/AnonymousClassLoader.java	Wed Nov 11 09:19:12 2015 +0000
@@ -78,7 +78,7 @@
         this.hostClass = hostClass;
     }
 
-    public static AnonymousClassLoader make(sun.misc.Unsafe unsafe, Class<?> hostClass) {
+    public static AnonymousClassLoader make(jdk.internal.misc.Unsafe unsafe, Class<?> hostClass) {
         if (unsafe == null)  throw new NullPointerException();
         return new AnonymousClassLoader(hostClass);
     }
@@ -189,13 +189,13 @@
     private static int fakeNameCounter = 99999;
 
     // ignore two warnings on this line:
-    private static sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+    private static jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
     // preceding line requires that this class be on the boot class path
 
     private static final Method defineAnonymousClass;
     static {
         Method dac = null;
-        Class<? extends sun.misc.Unsafe> unsafeClass = unsafe.getClass();
+        Class<? extends jdk.internal.misc.Unsafe> unsafeClass = unsafe.getClass();
         try {
             dac = unsafeClass.getMethod("defineAnonymousClass",
                                         Class.class,
--- a/src/java.base/share/classes/sun/misc/InnocuousThread.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/misc/InnocuousThread.java	Wed Nov 11 09:19:12 2015 +0000
@@ -36,7 +36,7 @@
  * ThreadGroup and supports the ability to erase ThreadLocals.
  */
 public final class InnocuousThread extends ManagedLocalsThread {
-    private static final Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
     private static final ThreadGroup INNOCUOUSTHREADGROUP;
     private static final AccessControlContext ACC;
     private static final long INHERITEDACCESSCONTROLCONTEXT;
@@ -92,7 +92,7 @@
             });
 
             // Find and use topmost ThreadGroup as parent of new group
-            UNSAFE = Unsafe.getUnsafe();
+            UNSAFE = jdk.internal.misc.Unsafe.getUnsafe();
             Class<?> tk = Thread.class;
             Class<?> gk = ThreadGroup.class;
 
--- a/src/java.base/share/classes/sun/misc/ManagedLocalsThread.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/misc/ManagedLocalsThread.java	Wed Nov 11 09:19:12 2015 +0000
@@ -30,7 +30,7 @@
  * locals erased on construction.
  */
 public class ManagedLocalsThread extends Thread {
-    private static final Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
     private static final long THREAD_LOCALS;
     private static final long INHERITABLE_THREAD_LOCALS;
 
@@ -77,7 +77,7 @@
     }
 
     static {
-        UNSAFE = Unsafe.getUnsafe();
+        UNSAFE = jdk.internal.misc.Unsafe.getUnsafe();
         Class<?> t = Thread.class;
         try {
             THREAD_LOCALS = UNSAFE.objectFieldOffset
--- a/src/java.base/share/classes/sun/nio/ch/NativeObject.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/nio/ch/NativeObject.java	Wed Nov 11 09:19:12 2015 +0000
@@ -29,7 +29,7 @@
 package sun.nio.ch;                                     // Formerly in sun.misc
 
 import java.nio.ByteOrder;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 
 // ## In the fullness of time, this class will be eliminated
--- a/src/java.base/share/classes/sun/nio/ch/Util.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/nio/ch/Util.java	Wed Nov 11 09:19:12 2015 +0000
@@ -35,7 +35,7 @@
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.misc.Cleaner;
 import sun.security.action.GetPropertyAction;
 
--- a/src/java.base/share/classes/sun/nio/fs/Cancellable.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/nio/fs/Cancellable.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.nio.fs;
 
 import sun.misc.ManagedLocalsThread;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import java.util.concurrent.ExecutionException;
 
 /**
--- a/src/java.base/share/classes/sun/nio/fs/NativeBuffer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/nio/fs/NativeBuffer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.nio.fs;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.misc.Cleaner;
 
 /**
--- a/src/java.base/share/classes/sun/nio/fs/NativeBuffers.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/nio/fs/NativeBuffers.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.nio.fs;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Factory for native buffers.
--- a/src/java.base/share/classes/sun/reflect/AccessorGenerator.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/AccessorGenerator.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.reflect;
 
 import java.lang.reflect.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /** Shared functionality for all accessor generators */
 
--- a/src/java.base/share/classes/sun/reflect/ClassDefiner.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/ClassDefiner.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /** Utility class which assists in calling Unsafe.defineClass() by
     creating a new class loader which delegates to the one needed in
--- a/src/java.base/share/classes/sun/reflect/FieldInfo.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/FieldInfo.java	Wed Nov 11 09:19:12 2015 +0000
@@ -38,7 +38,7 @@
     private String signature;
     private int    modifiers;
     // This is compatible with the old reflection implementation's
-    // "slot" value to allow sun.misc.Unsafe to work
+    // "slot" value to allow jdk.internal.misc.Unsafe to work
     private int    slot;
 
     // Not really necessary to provide a constructor since the VM
--- a/src/java.base/share/classes/sun/reflect/MagicAccessorImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/MagicAccessorImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -32,7 +32,7 @@
     fields and methods of other classes. It is used to hold the code
     for dynamically-generated FieldAccessorImpl and MethodAccessorImpl
     subclasses. (Use of the word "unsafe" was avoided in this class's
-    name to avoid confusion with {@link sun.misc.Unsafe}.) </P>
+    name to avoid confusion with {@link jdk.internal.misc.Unsafe}.) </P>
 
     <P> The bug fix for 4486457 also necessitated disabling
     verification for this class and all subclasses, as opposed to just
--- a/src/java.base/share/classes/sun/reflect/ReflectionFactory.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/ReflectionFactory.java	Wed Nov 11 09:19:12 2015 +0000
@@ -44,7 +44,7 @@
     subversion of both the language and the verifier. For this reason,
     they are all instance methods, and access to the constructor of
     this factory is guarded by a security check, in similar style to
-    {@link sun.misc.Unsafe}. </P>
+    {@link jdk.internal.misc.Unsafe}. </P>
 */
 
 public class ReflectionFactory {
--- a/src/java.base/share/classes/sun/reflect/UnsafeFieldAccessorImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/UnsafeFieldAccessorImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,9 +27,9 @@
 
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
-/** Base class for sun.misc.Unsafe-based FieldAccessors. The
+/** Base class for jdk.internal.misc.Unsafe-based FieldAccessors. The
     observation is that there are only nine types of fields from the
     standpoint of reflection code: the eight primitive types and
     Object. Using class Unsafe instead of generated bytecodes saves
--- a/src/java.base/share/classes/sun/reflect/UnsafeQualifiedFieldAccessorImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/UnsafeQualifiedFieldAccessorImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,10 +27,10 @@
 
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
- * Base class for sun.misc.Unsafe-based FieldAccessors for fields with
+ * Base class for jdk.internal.misc.Unsafe-based FieldAccessors for fields with
  * final or volatile qualifiers. These differ from unqualified
  * versions in that (1) they check for read-only status (2) they use
  * the volatile forms of Unsafe get/put methods. (When accessed via
--- a/src/java.base/share/classes/sun/reflect/UnsafeQualifiedStaticFieldAccessorImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/UnsafeQualifiedStaticFieldAccessorImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,9 +28,9 @@
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
 import java.security.AccessController;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
-/** Base class for sun.misc.Unsafe-based FieldAccessors for final or
+/** Base class for jdk.internal.misc.Unsafe-based FieldAccessors for final or
     static volatile fields.  */
 
 abstract class UnsafeQualifiedStaticFieldAccessorImpl
--- a/src/java.base/share/classes/sun/reflect/UnsafeStaticFieldAccessorImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/UnsafeStaticFieldAccessorImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,9 +28,9 @@
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
 import java.security.AccessController;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
-/** Base class for sun.misc.Unsafe-based FieldAccessors for static
+/** Base class for jdk.internal.misc.Unsafe-based FieldAccessors for static
     fields. The observation is that there are only nine types of
     fields from the standpoint of reflection code: the eight primitive
     types and Object. Using class Unsafe instead of generated
--- a/src/java.base/share/classes/sun/reflect/misc/ReflectUtil.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/share/classes/sun/reflect/misc/ReflectUtil.java	Wed Nov 11 09:19:12 2015 +0000
@@ -337,7 +337,7 @@
 
     /**
      * Checks if {@code Class cls} is a VM-anonymous class
-     * as defined by {@link sun.misc.Unsafe#defineAnonymousClass}
+     * as defined by {@link jdk.internal.misc.Unsafe#defineAnonymousClass}
      * (not to be confused with a Java Language anonymous inner class).
      */
     public static boolean isVMAnonymousClass(Class<?> cls) {
--- a/src/java.base/solaris/classes/sun/nio/ch/EventPortWrapper.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/solaris/classes/sun/nio/ch/EventPortWrapper.java	Wed Nov 11 09:19:12 2015 +0000
@@ -31,7 +31,7 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.security.action.GetIntegerAction;
 import static sun.nio.ch.SolarisEventPort.*;
 
--- a/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/solaris/classes/sun/nio/ch/SolarisEventPort.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,7 +28,7 @@
 import java.nio.channels.spi.AsynchronousChannelProvider;
 import java.util.concurrent.RejectedExecutionException;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Provides an AsynchronousChannelGroup implementation based on the Solaris 10
--- a/src/java.base/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/solaris/classes/sun/nio/fs/SolarisAclFileAttributeView.java	Wed Nov 11 09:19:12 2015 +0000
@@ -29,7 +29,7 @@
 import java.nio.file.attribute.*;
 import java.util.*;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.UnixConstants.*;
 import static sun.nio.fs.SolarisConstants.*;
--- a/src/java.base/solaris/classes/sun/nio/fs/SolarisWatchService.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/solaris/classes/sun/nio/fs/SolarisWatchService.java	Wed Nov 11 09:19:12 2015 +0000
@@ -30,7 +30,7 @@
 import java.security.PrivilegedAction;
 import java.util.*;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.UnixConstants.*;
 
--- a/src/java.base/windows/classes/sun/nio/ch/Iocp.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/ch/Iocp.java	Wed Nov 11 09:19:12 2015 +0000
@@ -36,7 +36,7 @@
 import java.util.concurrent.locks.ReentrantReadWriteLock;
 import java.security.AccessController;
 import sun.security.action.GetPropertyAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Windows implementation of AsynchronousChannelGroup encapsulating an I/O
--- a/src/java.base/windows/classes/sun/nio/ch/PendingIoCache.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/ch/PendingIoCache.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import java.nio.channels.*;
 import java.util.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Maintains a mapping of pending I/O requests (identified by the address of
--- a/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -33,7 +33,7 @@
 import java.security.AccessControlContext;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Windows implementation of AsynchronousServerSocketChannel using overlapped I/O.
--- a/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -34,7 +34,7 @@
 import java.security.AccessController;
 import java.security.PrivilegedActionException;
 import java.security.PrivilegedExceptionAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Windows implementation of AsynchronousSocketChannel using overlapped I/O.
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsFileAttributes.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,7 +28,7 @@
 import java.nio.file.attribute.*;
 import java.util.concurrent.TimeUnit;
 import java.security.AccessController;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.security.action.GetPropertyAction;
 
 import static sun.nio.fs.WindowsNativeDispatcher.*;
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsFileSystemProvider.java	Wed Nov 11 09:19:12 2015 +0000
@@ -33,7 +33,7 @@
 import java.io.*;
 import java.util.*;
 import java.security.AccessController;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.nio.ch.ThreadPool;
 import sun.security.util.SecurityConstants;
 
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsLinkSupport.java	Wed Nov 11 09:19:12 2015 +0000
@@ -30,7 +30,7 @@
 import java.io.IOError;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.WindowsNativeDispatcher.*;
 import static sun.nio.fs.WindowsConstants.*;
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import java.security.AccessController;
 import java.security.PrivilegedAction;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Win32 and library calls.
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsSecurityDescriptor.java	Wed Nov 11 09:19:12 2015 +0000
@@ -29,7 +29,7 @@
 import java.nio.file.attribute.*;
 import java.util.*;
 import java.io.IOException;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.WindowsNativeDispatcher.*;
 import static sun.nio.fs.WindowsConstants.*;
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsUserDefinedFileAttributeView.java	Wed Nov 11 09:19:12 2015 +0000
@@ -31,7 +31,7 @@
 import java.nio.channels.FileChannel;
 import java.io.IOException;
 import java.util.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.WindowsNativeDispatcher.*;
 import static sun.nio.fs.WindowsConstants.*;
--- a/src/java.base/windows/classes/sun/nio/fs/WindowsWatchService.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.base/windows/classes/sun/nio/fs/WindowsWatchService.java	Wed Nov 11 09:19:12 2015 +0000
@@ -36,7 +36,7 @@
 import java.util.Set;
 
 import com.sun.nio.file.ExtendedWatchEventModifier;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import static sun.nio.fs.WindowsNativeDispatcher.*;
 import static sun.nio.fs.WindowsConstants.*;
--- a/src/java.desktop/share/classes/sun/awt/AWTAccessor.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/share/classes/sun/awt/AWTAccessor.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.awt;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import javax.accessibility.AccessibleContext;
 import java.awt.*;
--- a/src/java.desktop/share/classes/sun/font/StrikeCache.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/share/classes/sun/font/StrikeCache.java	Wed Nov 11 09:19:12 2015 +0000
@@ -37,7 +37,7 @@
 import sun.java2d.pipe.BufferedContext;
 import sun.java2d.pipe.RenderQueue;
 import sun.java2d.pipe.hw.AccelGraphicsConfig;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
 
--- a/src/java.desktop/share/classes/sun/java2d/pipe/RenderBuffer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/share/classes/sun/java2d/pipe/RenderBuffer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.java2d.pipe;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 
 /**
--- a/src/java.desktop/share/classes/sun/swing/SwingAccessor.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/share/classes/sun/swing/SwingAccessor.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.swing;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import java.awt.*;
 import javax.swing.*;
--- a/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDConstants.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDConstants.java	Wed Nov 11 09:19:12 2015 +0000
@@ -31,7 +31,7 @@
 
 import java.util.Arrays;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Motif DnD protocol global constants and convenience routines.
--- a/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java	Wed Nov 11 09:19:12 2015 +0000
@@ -33,7 +33,7 @@
 
 import java.util.Map;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * XDragSourceProtocol implementation for Motif DnD protocol.
--- a/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java	Wed Nov 11 09:19:12 2015 +0000
@@ -33,7 +33,7 @@
 
 import java.io.IOException;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * XDropTargetProtocol implementation for Motif DnD protocol.
--- a/src/java.desktop/unix/classes/sun/awt/X11/Native.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/Native.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.awt.X11;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import java.util.Vector;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
--- a/src/java.desktop/unix/classes/sun/awt/X11/UnsafeXDisposerRecord.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/UnsafeXDisposerRecord.java	Wed Nov 11 09:19:12 2015 +0000
@@ -24,7 +24,7 @@
  */
 package sun.awt.X11;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.util.logging.PlatformLogger;
 
 class UnsafeXDisposerRecord implements sun.java2d.DisposerRecord {
--- a/src/java.desktop/unix/classes/sun/awt/X11/WindowPropertyGetter.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/WindowPropertyGetter.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.awt.X11;
 
 import java.util.*;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 public class WindowPropertyGetter {
     private static Unsafe unsafe = XlibWrapper.unsafe;
--- a/src/java.desktop/unix/classes/sun/awt/X11/XAtom.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XAtom.java	Wed Nov 11 09:19:12 2015 +0000
@@ -55,7 +55,7 @@
  * @since       1.5
  */
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import java.util.HashMap;
 
 public final class XAtom {
--- a/src/java.desktop/unix/classes/sun/awt/X11/XDnDDragSourceProtocol.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XDnDDragSourceProtocol.java	Wed Nov 11 09:19:12 2015 +0000
@@ -35,7 +35,7 @@
 
 import sun.util.logging.PlatformLogger;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * XDragSourceProtocol implementation for XDnD protocol.
--- a/src/java.desktop/unix/classes/sun/awt/X11/XDnDDropTargetProtocol.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XDnDDropTargetProtocol.java	Wed Nov 11 09:19:12 2015 +0000
@@ -35,7 +35,7 @@
 
 import sun.util.logging.PlatformLogger;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * XDropTargetProtocol implementation for XDnD protocol.
--- a/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java	Wed Nov 11 09:19:12 2015 +0000
@@ -41,7 +41,7 @@
 import sun.awt.dnd.SunDropTargetContextPeer;
 import sun.awt.dnd.SunDropTargetEvent;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * The XDropTargetContextPeer is the class responsible for handling
--- a/src/java.desktop/unix/classes/sun/awt/X11/XEmbedHelper.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XEmbedHelper.java	Wed Nov 11 09:19:12 2015 +0000
@@ -25,7 +25,7 @@
 
 package sun.awt.X11;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import sun.util.logging.PlatformLogger;
 
--- a/src/java.desktop/unix/classes/sun/awt/X11/XKeysym.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XKeysym.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 package sun.awt.X11;
 import java.util.Hashtable;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 import sun.util.logging.PlatformLogger;
 
--- a/src/java.desktop/unix/classes/sun/awt/X11/XQueryTree.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XQueryTree.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 package sun.awt.X11;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 public class XQueryTree {
         private static Unsafe unsafe = XlibWrapper.unsafe;
--- a/src/java.desktop/unix/classes/sun/awt/X11/XTranslateCoordinates.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XTranslateCoordinates.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 package sun.awt.X11;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 public class XTranslateCoordinates {
         private static Unsafe unsafe = XlibWrapper.unsafe;
--- a/src/java.desktop/unix/classes/sun/awt/X11/XWM.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XWM.java	Wed Nov 11 09:19:12 2015 +0000
@@ -31,7 +31,7 @@
 package sun.awt.X11;
 
 import sun.awt.IconInfo;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import java.awt.Insets;
 import java.awt.Frame;
 import java.awt.Rectangle;
--- a/src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XlibWrapper.java	Wed Nov 11 09:19:12 2015 +0000
@@ -27,7 +27,7 @@
 
 import java.security.AccessController;
 
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 import sun.security.action.GetPropertyAction;
 
 final class XlibWrapper {
--- a/src/java.desktop/unix/classes/sun/awt/X11/keysym2ucs.h	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.desktop/unix/classes/sun/awt/X11/keysym2ucs.h	Wed Nov 11 09:19:12 2015 +0000
@@ -65,7 +65,7 @@
 tojava
 tojava package sun.awt.X11;
 tojava import java.util.Hashtable;
-tojava import sun.misc.Unsafe;
+tojava import jdk.internal.misc.Unsafe;
 tojava
 tojava import sun.util.logging.PlatformLogger;
 tojava
--- a/src/java.management/share/classes/sun/management/BaseOperatingSystemImpl.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.management/share/classes/sun/management/BaseOperatingSystemImpl.java	Wed Nov 11 09:19:12 2015 +0000
@@ -28,7 +28,7 @@
 import java.lang.management.OperatingSystemMXBean;
 import java.lang.management.ManagementFactory;
 import javax.management.ObjectName;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 /**
  * Implementation class for the operating system.
--- a/src/java.management/share/classes/sun/management/ManagementFactoryHelper.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.management/share/classes/sun/management/ManagementFactoryHelper.java	Wed Nov 11 09:19:12 2015 +0000
@@ -51,7 +51,7 @@
     static {
         // make sure that the management lib is loaded within
         // java.lang.management.ManagementFactory
-        sun.misc.Unsafe.getUnsafe().ensureClassInitialized(ManagementFactory.class);
+        jdk.internal.misc.Unsafe.getUnsafe().ensureClassInitialized(ManagementFactory.class);
     }
 
     private static final VMManagement jvm = new VMManagementImpl();
--- a/src/java.security.jgss/share/classes/sun/security/krb5/KerberosSecrets.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/KerberosSecrets.java	Wed Nov 11 09:19:12 2015 +0000
@@ -26,7 +26,7 @@
 package sun.security.krb5;
 
 import javax.security.auth.kerberos.KeyTab;
-import sun.misc.Unsafe;
+import jdk.internal.misc.Unsafe;
 
 public class KerberosSecrets {
     private static final Unsafe unsafe = Unsafe.getUnsafe();
--- a/src/java.security.jgss/share/classes/sun/security/krb5/PrincipalName.java	Wed Nov 11 10:42:20 2015 +0300
+++ b/src/java.security.jgss/share/classes/sun/security/krb5/PrincipalName.java	Wed Nov 11 09:19:12 2015 +0000
@@ -187,10 +187,10 @@
     }
 
     private static final long NAME_STRINGS_OFFSET;
-    private static final sun.misc.Unsafe UNSAFE;
+    private static final jdk.internal.misc.Unsafe UNSAFE;
     static {
         try {
-            sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
+            jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
             NAME_STRINGS_OFFSET = unsafe.objectFieldOffset(
                     PrincipalName.class.getDeclaredField("nameStrings"));
             UNSAFE = unsafe;