8140606: Update library code to use internal Unsafe
Reviewed-by: alanb, mchung, psandoz, weijun
This commit is contained in:
parent
6c93228c43
commit
bdbc4d15df
@ -841,7 +841,7 @@ public class WrapperGenerator {
|
|||||||
pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" );
|
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("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;");
|
pw.println("import sun.util.logging.PlatformLogger;");
|
||||||
String baseClass = stp.getBaseClass();
|
String baseClass = stp.getBaseClass();
|
||||||
if (baseClass == null) {
|
if (baseClass == null) {
|
||||||
@ -941,7 +941,7 @@ public class WrapperGenerator {
|
|||||||
pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" );
|
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("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("class " + ft.getName() + " {");
|
||||||
pw.println("\tprivate static Unsafe unsafe = XlibWrapper.unsafe;");
|
pw.println("\tprivate static Unsafe unsafe = XlibWrapper.unsafe;");
|
||||||
pw.println("\tprivate boolean __executed = false;");
|
pw.println("\tprivate boolean __executed = false;");
|
||||||
|
@ -34,7 +34,7 @@ import java.util.concurrent.ArrayBlockingQueue;
|
|||||||
import java.util.concurrent.RejectedExecutionException;
|
import java.util.concurrent.RejectedExecutionException;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
import java.util.concurrent.locks.ReentrantLock;
|
import java.util.concurrent.locks.ReentrantLock;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AsynchronousChannelGroup implementation based on the AIX pollset framework.
|
* AsynchronousChannelGroup implementation based on the AIX pollset framework.
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.nio.ch;
|
package sun.nio.ch;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to the Linux epoll facility.
|
* Provides access to the Linux epoll facility.
|
||||||
|
@ -29,7 +29,7 @@ import java.nio.file.attribute.*;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.UnixNativeDispatcher.*;
|
import static sun.nio.fs.UnixNativeDispatcher.*;
|
||||||
import static sun.nio.fs.UnixConstants.*;
|
import static sun.nio.fs.UnixConstants.*;
|
||||||
|
@ -29,7 +29,7 @@ import java.nio.file.*;
|
|||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.UnixConstants.*;
|
import static sun.nio.fs.UnixConstants.*;
|
||||||
import static sun.nio.fs.LinuxNativeDispatcher.*;
|
import static sun.nio.fs.LinuxNativeDispatcher.*;
|
||||||
|
@ -30,7 +30,7 @@ import java.security.AccessController;
|
|||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.UnixNativeDispatcher.*;
|
import static sun.nio.fs.UnixNativeDispatcher.*;
|
||||||
import static sun.nio.fs.UnixConstants.*;
|
import static sun.nio.fs.UnixConstants.*;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.nio.ch;
|
package sun.nio.ch;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides access to the BSD kqueue facility.
|
* Provides access to the BSD kqueue facility.
|
||||||
|
@ -2184,10 +2184,10 @@ public class File
|
|||||||
|
|
||||||
private static final long PATH_OFFSET;
|
private static final long PATH_OFFSET;
|
||||||
private static final long PREFIX_LENGTH_OFFSET;
|
private static final long PREFIX_LENGTH_OFFSET;
|
||||||
private static final sun.misc.Unsafe UNSAFE;
|
private static final jdk.internal.misc.Unsafe UNSAFE;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
|
jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
PATH_OFFSET = unsafe.objectFieldOffset(
|
PATH_OFFSET = unsafe.objectFieldOffset(
|
||||||
File.class.getDeclaredField("path"));
|
File.class.getDeclaredField("path"));
|
||||||
PREFIX_LENGTH_OFFSET = unsafe.objectFieldOffset(
|
PREFIX_LENGTH_OFFSET = unsafe.objectFieldOffset(
|
||||||
|
@ -40,7 +40,7 @@ import java.util.HashMap;
|
|||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.ConcurrentMap;
|
import java.util.concurrent.ConcurrentMap;
|
||||||
import static java.io.ObjectStreamClass.processQueue;
|
import static java.io.ObjectStreamClass.processQueue;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.reflect.misc.ReflectUtil;
|
import sun.reflect.misc.ReflectUtil;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,7 +48,7 @@ import java.util.HashSet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.ConcurrentMap;
|
import java.util.concurrent.ConcurrentMap;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.reflect.CallerSensitive;
|
import sun.reflect.CallerSensitive;
|
||||||
import sun.reflect.Reflection;
|
import sun.reflect.Reflection;
|
||||||
import sun.reflect.ReflectionFactory;
|
import sun.reflect.ReflectionFactory;
|
||||||
|
@ -55,7 +55,7 @@ import java.util.Map;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||||
import sun.reflect.CallerSensitive;
|
import sun.reflect.CallerSensitive;
|
||||||
import sun.reflect.ConstantPool;
|
import sun.reflect.ConstantPool;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package java.lang.invoke;
|
package java.lang.invoke;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import sun.invoke.util.VerifyAccess;
|
import sun.invoke.util.VerifyAccess;
|
||||||
|
@ -27,7 +27,7 @@ package java.lang.invoke;
|
|||||||
|
|
||||||
import jdk.internal.org.objectweb.asm.*;
|
import jdk.internal.org.objectweb.asm.*;
|
||||||
import sun.invoke.util.BytecodeDescriptor;
|
import sun.invoke.util.BytecodeDescriptor;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.security.action.GetPropertyAction;
|
import sun.security.action.GetPropertyAction;
|
||||||
|
|
||||||
import java.io.FilePermission;
|
import java.io.FilePermission;
|
||||||
|
@ -775,7 +775,7 @@ class InvokerBytecodeGenerator {
|
|||||||
// Sample classes from each package we are willing to bind to statically:
|
// Sample classes from each package we are willing to bind to statically:
|
||||||
java.lang.Object.class,
|
java.lang.Object.class,
|
||||||
java.util.Arrays.class,
|
java.util.Arrays.class,
|
||||||
sun.misc.Unsafe.class
|
jdk.internal.misc.Unsafe.class
|
||||||
//MethodHandle.class already covered
|
//MethodHandle.class already covered
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ class MethodHandleNatives {
|
|||||||
static native int getMembers(Class<?> defc, String matchName, String matchSig,
|
static native int getMembers(Class<?> defc, String matchName, String matchSig,
|
||||||
int matchFlags, Class<?> caller, int skip, MemberName[] results);
|
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 objectFieldOffset(MemberName self); // e.g., returns vmindex
|
||||||
static native long staticFieldOffset(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
|
static native Object staticFieldBase(MemberName self); // e.g., returns clazz
|
||||||
|
@ -27,7 +27,7 @@ package java.lang.invoke;
|
|||||||
|
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class consists exclusively of static names internal to the
|
* This class consists exclusively of static names internal to the
|
||||||
|
@ -3726,12 +3726,12 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static class UnsafeHolder {
|
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 intCompactOffset;
|
||||||
private static final long intValOffset;
|
private static final long intValOffset;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
unsafe = sun.misc.Unsafe.getUnsafe();
|
unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
intCompactOffset = unsafe.objectFieldOffset
|
intCompactOffset = unsafe.objectFieldOffset
|
||||||
(BigDecimal.class.getDeclaredField("intCompact"));
|
(BigDecimal.class.getDeclaredField("intCompact"));
|
||||||
intValOffset = unsafe.objectFieldOffset
|
intValOffset = unsafe.objectFieldOffset
|
||||||
|
@ -4526,12 +4526,12 @@ public class BigInteger extends Number implements Comparable<BigInteger> {
|
|||||||
|
|
||||||
// Support for resetting final fields while deserializing
|
// Support for resetting final fields while deserializing
|
||||||
private static class UnsafeHolder {
|
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 signumOffset;
|
||||||
private static final long magOffset;
|
private static final long magOffset;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
unsafe = sun.misc.Unsafe.getUnsafe();
|
unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
signumOffset = unsafe.objectFieldOffset
|
signumOffset = unsafe.objectFieldOffset
|
||||||
(BigInteger.class.getDeclaredField("signum"));
|
(BigInteger.class.getDeclaredField("signum"));
|
||||||
magOffset = unsafe.objectFieldOffset
|
magOffset = unsafe.objectFieldOffset
|
||||||
|
@ -576,11 +576,11 @@ class Inet6Address extends InetAddress {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private static final long FIELDS_OFFSET;
|
private static final long FIELDS_OFFSET;
|
||||||
private static final sun.misc.Unsafe UNSAFE;
|
private static final jdk.internal.misc.Unsafe UNSAFE;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
|
jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
||||||
Inet6Address.class.getDeclaredField("holder6"));
|
Inet6Address.class.getDeclaredField("holder6"));
|
||||||
UNSAFE = unsafe;
|
UNSAFE = unsafe;
|
||||||
|
@ -1493,11 +1493,11 @@ class InetAddress implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final long FIELDS_OFFSET;
|
private static final long FIELDS_OFFSET;
|
||||||
private static final sun.misc.Unsafe UNSAFE;
|
private static final jdk.internal.misc.Unsafe UNSAFE;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
|
jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
||||||
InetAddress.class.getDeclaredField("holder")
|
InetAddress.class.getDeclaredField("holder")
|
||||||
);
|
);
|
||||||
|
@ -303,10 +303,10 @@ public class InetSocketAddress
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final long FIELDS_OFFSET;
|
private static final long FIELDS_OFFSET;
|
||||||
private static final sun.misc.Unsafe UNSAFE;
|
private static final jdk.internal.misc.Unsafe UNSAFE;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
sun.misc.Unsafe unsafe = sun.misc.Unsafe.getUnsafe();
|
jdk.internal.misc.Unsafe unsafe = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
FIELDS_OFFSET = unsafe.objectFieldOffset(
|
||||||
InetSocketAddress.class.getDeclaredField("holder"));
|
InetSocketAddress.class.getDeclaredField("holder"));
|
||||||
UNSAFE = unsafe;
|
UNSAFE = unsafe;
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package java.nio;
|
package java.nio;
|
||||||
|
|
||||||
import java.io.FileDescriptor;
|
import java.io.FileDescriptor;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,7 @@ import java.util.stream.IntStream;
|
|||||||
import java.util.stream.LongStream;
|
import java.util.stream.LongStream;
|
||||||
import java.util.stream.StreamSupport;
|
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
|
* An instance of this class is used to generate a stream of
|
||||||
|
@ -2775,7 +2775,7 @@ public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 RESULT;
|
||||||
private static final long STACK;
|
private static final long STACK;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
|
@ -297,7 +297,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
|||||||
* Table accesses require volatile/atomic reads, writes, and
|
* Table accesses require volatile/atomic reads, writes, and
|
||||||
* CASes. Because there is no other way to arrange this without
|
* CASes. Because there is no other way to arrange this without
|
||||||
* adding further indirections, we use intrinsics
|
* 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
|
* We use the top (sign) bit of Node hash fields for control
|
||||||
* purposes -- it is available anyway because of addressing
|
* purposes -- it is available anyway because of addressing
|
||||||
@ -3287,7 +3287,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
|||||||
return true;
|
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;
|
private static final long LOCKSTATE;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
@ -6330,7 +6330,7 @@ public class ConcurrentHashMap<K,V> extends AbstractMap<K,V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 SIZECTL;
|
||||||
private static final long TRANSFERINDEX;
|
private static final long TRANSFERINDEX;
|
||||||
private static final long BASECOUNT;
|
private static final long BASECOUNT;
|
||||||
|
@ -326,7 +326,7 @@ public class ConcurrentLinkedDeque<E>
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 PREV;
|
||||||
private static final long ITEM;
|
private static final long ITEM;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
@ -1608,7 +1608,7 @@ public class ConcurrentLinkedDeque<E>
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
static {
|
static {
|
||||||
|
@ -929,7 +929,7 @@ public class ConcurrentLinkedQueue<E> extends AbstractQueue<E>
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
private static final long ITEM;
|
private static final long ITEM;
|
||||||
|
@ -534,7 +534,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 VALUE;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
|
|
||||||
@ -614,7 +614,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long RIGHT;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
@ -3596,7 +3596,7 @@ public class ConcurrentSkipListMap<K,V> extends AbstractMap<K,V>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 HEAD;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -510,7 +510,7 @@ public class ConcurrentSkipListSet<E>
|
|||||||
U.putObjectVolatile(this, MAP, 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;
|
private static final long MAP;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -1545,7 +1545,7 @@ public class CopyOnWriteArrayList<E>
|
|||||||
private void resetLock() {
|
private void resetLock() {
|
||||||
U.putObjectVolatile(this, LOCK, new Object());
|
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;
|
private static final long LOCK;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -754,7 +754,7 @@ public abstract class CountedCompleter<T> extends ForkJoinTask<T> {
|
|||||||
protected void setRawResult(T t) { }
|
protected void setRawResult(T t) { }
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long PENDING;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -625,7 +625,7 @@ public class Exchanger<V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 BOUND;
|
||||||
private static final long SLOT;
|
private static final long SLOT;
|
||||||
private static final long MATCH;
|
private static final long MATCH;
|
||||||
|
@ -1337,7 +1337,7 @@ public class ForkJoinPool extends AbstractExecutorService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics. Note that some are (and must be) the same as in FJP
|
// 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 long QLOCK;
|
||||||
private static final int ABASE;
|
private static final int ABASE;
|
||||||
private static final int ASHIFT;
|
private static final int ASHIFT;
|
||||||
@ -3452,7 +3452,7 @@ public class ForkJoinPool extends AbstractExecutorService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 CTL;
|
||||||
private static final long RUNSTATE;
|
private static final long RUNSTATE;
|
||||||
private static final int ABASE;
|
private static final int ABASE;
|
||||||
|
@ -1517,7 +1517,7 @@ public abstract class ForkJoinTask<V> implements Future<V>, Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long STATUS;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -185,7 +185,7 @@ public class ForkJoinWorkerThread extends Thread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set up to allow setting thread fields in constructor
|
// 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 THREADLOCALS;
|
||||||
private static final long INHERITABLETHREADLOCALS;
|
private static final long INHERITABLETHREADLOCALS;
|
||||||
private static final long INHERITEDACCESSCONTROLCONTEXT;
|
private static final long INHERITEDACCESSCONTROLCONTEXT;
|
||||||
@ -248,7 +248,7 @@ public class ForkJoinWorkerThread extends Thread {
|
|||||||
*/
|
*/
|
||||||
private static ThreadGroup createThreadGroup() {
|
private static ThreadGroup createThreadGroup() {
|
||||||
try {
|
try {
|
||||||
sun.misc.Unsafe u = sun.misc.Unsafe.getUnsafe();
|
jdk.internal.misc.Unsafe u = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
long tg = u.objectFieldOffset
|
long tg = u.objectFieldOffset
|
||||||
(Thread.class.getDeclaredField("group"));
|
(Thread.class.getDeclaredField("group"));
|
||||||
long gp = u.objectFieldOffset
|
long gp = u.objectFieldOffset
|
||||||
|
@ -484,7 +484,7 @@ public class FutureTask<V> implements RunnableFuture<V> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 STATE;
|
||||||
private static final long RUNNER;
|
private static final long RUNNER;
|
||||||
private static final long WAITERS;
|
private static final long WAITERS;
|
||||||
|
@ -538,7 +538,7 @@ public class LinkedTransferQueue<E> extends AbstractQueue<E>
|
|||||||
private static final long serialVersionUID = -3375979862319811754L;
|
private static final long serialVersionUID = -3375979862319811754L;
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 ITEM;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
private static final long WAITER;
|
private static final long WAITER;
|
||||||
@ -1564,7 +1564,7 @@ public class LinkedTransferQueue<E> extends AbstractQueue<E>
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
private static final long SWEEPVOTES;
|
private static final long SWEEPVOTES;
|
||||||
|
@ -1137,7 +1137,7 @@ public class Phaser {
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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 STATE;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -1010,7 +1010,7 @@ public class PriorityBlockingQueue<E> extends AbstractQueue<E>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long ALLOCATIONSPINLOCK;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -1596,7 +1596,7 @@ public class SubmissionPublisher<T> implements Flow.Publisher<T>,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 CTL;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
private static final long HEAD;
|
private static final long HEAD;
|
||||||
|
@ -283,7 +283,7 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 MATCH;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 HEAD;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
@ -575,7 +575,7 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 ITEM;
|
||||||
private static final long NEXT;
|
private static final long NEXT;
|
||||||
|
|
||||||
@ -817,7 +817,7 @@ public class SynchronousQueue<E> extends AbstractQueue<E>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
private static final long CLEANME;
|
private static final long CLEANME;
|
||||||
|
@ -1050,7 +1050,7 @@ public class ThreadLocalRandom extends Random {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 SEED;
|
||||||
private static final long PROBE;
|
private static final long PROBE;
|
||||||
private static final long SECONDARY;
|
private static final long SECONDARY;
|
||||||
|
@ -49,7 +49,7 @@ package java.util.concurrent.atomic;
|
|||||||
public class AtomicBoolean implements java.io.Serializable {
|
public class AtomicBoolean implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = 4654671469794556979L;
|
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;
|
private static final long VALUE;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -54,7 +54,7 @@ import java.util.function.IntUnaryOperator;
|
|||||||
public class AtomicInteger extends Number implements java.io.Serializable {
|
public class AtomicInteger extends Number implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = 6214790243416807050L;
|
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;
|
private static final long VALUE;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -49,7 +49,7 @@ import java.util.function.IntUnaryOperator;
|
|||||||
public class AtomicIntegerArray implements java.io.Serializable {
|
public class AtomicIntegerArray implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = 2862133569453604235L;
|
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 ABASE;
|
||||||
private static final int ASHIFT;
|
private static final int ASHIFT;
|
||||||
private final int[] array;
|
private final int[] array;
|
||||||
|
@ -367,7 +367,7 @@ public abstract class AtomicIntegerFieldUpdater<T> {
|
|||||||
*/
|
*/
|
||||||
private static class AtomicIntegerFieldUpdaterImpl<T>
|
private static class AtomicIntegerFieldUpdaterImpl<T>
|
||||||
extends AtomicIntegerFieldUpdater<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 long offset;
|
||||||
private final Class<T> tclass;
|
private final Class<T> tclass;
|
||||||
private final Class<?> cclass;
|
private final Class<?> cclass;
|
||||||
|
@ -54,7 +54,7 @@ import java.util.function.LongUnaryOperator;
|
|||||||
public class AtomicLong extends Number implements java.io.Serializable {
|
public class AtomicLong extends Number implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = 1927816293512124184L;
|
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;
|
private static final long VALUE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,7 +48,7 @@ import java.util.function.LongUnaryOperator;
|
|||||||
public class AtomicLongArray implements java.io.Serializable {
|
public class AtomicLongArray implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = -2308431214976778248L;
|
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 ABASE;
|
||||||
private static final int ASHIFT;
|
private static final int ASHIFT;
|
||||||
private final long[] array;
|
private final long[] array;
|
||||||
|
@ -366,7 +366,7 @@ public abstract class AtomicLongFieldUpdater<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static class CASUpdater<T> extends AtomicLongFieldUpdater<T> {
|
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 long offset;
|
||||||
private final Class<T> tclass;
|
private final Class<T> tclass;
|
||||||
private final Class<?> cclass;
|
private final Class<?> cclass;
|
||||||
@ -490,7 +490,7 @@ public abstract class AtomicLongFieldUpdater<T> {
|
|||||||
|
|
||||||
|
|
||||||
private static class LockedUpdater<T> extends AtomicLongFieldUpdater<T> {
|
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 long offset;
|
||||||
private final Class<T> tclass;
|
private final Class<T> tclass;
|
||||||
private final Class<?> cclass;
|
private final Class<?> cclass;
|
||||||
|
@ -190,7 +190,7 @@ public class AtomicMarkableReference<V> {
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long PAIR;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -49,7 +49,7 @@ import java.util.function.UnaryOperator;
|
|||||||
public class AtomicReference<V> implements java.io.Serializable {
|
public class AtomicReference<V> implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = -1848883965231344442L;
|
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;
|
private static final long VALUE;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
@ -52,7 +52,7 @@ import java.util.function.UnaryOperator;
|
|||||||
public class AtomicReferenceArray<E> implements java.io.Serializable {
|
public class AtomicReferenceArray<E> implements java.io.Serializable {
|
||||||
private static final long serialVersionUID = -6209656149925076980L;
|
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 long ARRAY;
|
||||||
private static final int ABASE;
|
private static final int ABASE;
|
||||||
private static final int ASHIFT;
|
private static final int ASHIFT;
|
||||||
|
@ -284,7 +284,7 @@ public abstract class AtomicReferenceFieldUpdater<T,V> {
|
|||||||
|
|
||||||
private static final class AtomicReferenceFieldUpdaterImpl<T,V>
|
private static final class AtomicReferenceFieldUpdaterImpl<T,V>
|
||||||
extends AtomicReferenceFieldUpdater<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 long offset;
|
||||||
private final Class<T> tclass;
|
private final Class<T> tclass;
|
||||||
private final Class<V> vclass;
|
private final Class<V> vclass;
|
||||||
|
@ -190,7 +190,7 @@ public class AtomicStampedReference<V> {
|
|||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long PAIR;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -133,7 +133,7 @@ abstract class Striped64 extends Number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 VALUE;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
@ -372,7 +372,7 @@ abstract class Striped64 extends Number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 BASE;
|
||||||
private static final long CELLSBUSY;
|
private static final long CELLSBUSY;
|
||||||
private static final long PROBE;
|
private static final long PROBE;
|
||||||
|
@ -1821,7 +1821,7 @@ public abstract class AbstractQueuedLongSynchronizer
|
|||||||
* are at it, we do the same for other CASable fields (which could
|
* are at it, we do the same for other CASable fields (which could
|
||||||
* otherwise be done with atomic field updaters).
|
* 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 STATE;
|
||||||
private static final long HEAD;
|
private static final long HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
|
@ -524,7 +524,7 @@ public abstract class AbstractQueuedSynchronizer
|
|||||||
return U.compareAndSwapObject(this, NEXT, expect, update);
|
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;
|
private static final long NEXT;
|
||||||
static final long PREV;
|
static final long PREV;
|
||||||
private static final long THREAD;
|
private static final long THREAD;
|
||||||
@ -2285,7 +2285,7 @@ public abstract class AbstractQueuedSynchronizer
|
|||||||
* are at it, we do the same for other CASable fields (which could
|
* are at it, we do the same for other CASable fields (which could
|
||||||
* otherwise be done with atomic field updaters).
|
* 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 STATE;
|
||||||
private static final long HEAD;
|
private static final long HEAD;
|
||||||
private static final long TAIL;
|
private static final long TAIL;
|
||||||
|
@ -394,7 +394,7 @@ public class LockSupport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Hotspot implementation via intrinsics API
|
// 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 PARKBLOCKER;
|
||||||
private static final long SECONDARY;
|
private static final long SECONDARY;
|
||||||
static {
|
static {
|
||||||
|
@ -1501,7 +1501,7 @@ public class ReentrantReadWriteLock
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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;
|
private static final long TID;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
@ -1398,7 +1398,7 @@ public class StampedLock implements java.io.Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Unsafe mechanics
|
// 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 STATE;
|
||||||
private static final long WHEAD;
|
private static final long WHEAD;
|
||||||
private static final long WTAIL;
|
private static final long WTAIL;
|
||||||
|
@ -28,7 +28,7 @@ import java.nio.ByteBuffer;
|
|||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
|
|
||||||
import jdk.internal.HotSpotIntrinsicCandidate;
|
import jdk.internal.HotSpotIntrinsicCandidate;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.nio.ch.DirectBuffer;
|
import sun.nio.ch.DirectBuffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +30,7 @@ import java.io.Console;
|
|||||||
import java.io.FileDescriptor;
|
import java.io.FileDescriptor;
|
||||||
import java.security.ProtectionDomain;
|
import java.security.ProtectionDomain;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/** A repository of "shared secrets", which are a mechanism for
|
/** A repository of "shared secrets", which are a mechanism for
|
||||||
calling implementation-private methods in another package without
|
calling implementation-private methods in another package without
|
||||||
|
@ -78,7 +78,7 @@ public class AnonymousClassLoader {
|
|||||||
this.hostClass = hostClass;
|
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();
|
if (unsafe == null) throw new NullPointerException();
|
||||||
return new AnonymousClassLoader(hostClass);
|
return new AnonymousClassLoader(hostClass);
|
||||||
}
|
}
|
||||||
@ -189,13 +189,13 @@ public class AnonymousClassLoader {
|
|||||||
private static int fakeNameCounter = 99999;
|
private static int fakeNameCounter = 99999;
|
||||||
|
|
||||||
// ignore two warnings on this line:
|
// 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
|
// preceding line requires that this class be on the boot class path
|
||||||
|
|
||||||
private static final Method defineAnonymousClass;
|
private static final Method defineAnonymousClass;
|
||||||
static {
|
static {
|
||||||
Method dac = null;
|
Method dac = null;
|
||||||
Class<? extends sun.misc.Unsafe> unsafeClass = unsafe.getClass();
|
Class<? extends jdk.internal.misc.Unsafe> unsafeClass = unsafe.getClass();
|
||||||
try {
|
try {
|
||||||
dac = unsafeClass.getMethod("defineAnonymousClass",
|
dac = unsafeClass.getMethod("defineAnonymousClass",
|
||||||
Class.class,
|
Class.class,
|
||||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
* ThreadGroup and supports the ability to erase ThreadLocals.
|
* ThreadGroup and supports the ability to erase ThreadLocals.
|
||||||
*/
|
*/
|
||||||
public final class InnocuousThread extends ManagedLocalsThread {
|
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 ThreadGroup INNOCUOUSTHREADGROUP;
|
||||||
private static final AccessControlContext ACC;
|
private static final AccessControlContext ACC;
|
||||||
private static final long INHERITEDACCESSCONTROLCONTEXT;
|
private static final long INHERITEDACCESSCONTROLCONTEXT;
|
||||||
@ -92,7 +92,7 @@ public final class InnocuousThread extends ManagedLocalsThread {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Find and use topmost ThreadGroup as parent of new group
|
// Find and use topmost ThreadGroup as parent of new group
|
||||||
UNSAFE = Unsafe.getUnsafe();
|
UNSAFE = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
Class<?> tk = Thread.class;
|
Class<?> tk = Thread.class;
|
||||||
Class<?> gk = ThreadGroup.class;
|
Class<?> gk = ThreadGroup.class;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ package sun.misc;
|
|||||||
* locals erased on construction.
|
* locals erased on construction.
|
||||||
*/
|
*/
|
||||||
public class ManagedLocalsThread extends Thread {
|
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 THREAD_LOCALS;
|
||||||
private static final long INHERITABLE_THREAD_LOCALS;
|
private static final long INHERITABLE_THREAD_LOCALS;
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ public class ManagedLocalsThread extends Thread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
UNSAFE = Unsafe.getUnsafe();
|
UNSAFE = jdk.internal.misc.Unsafe.getUnsafe();
|
||||||
Class<?> t = Thread.class;
|
Class<?> t = Thread.class;
|
||||||
try {
|
try {
|
||||||
THREAD_LOCALS = UNSAFE.objectFieldOffset
|
THREAD_LOCALS = UNSAFE.objectFieldOffset
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
package sun.nio.ch; // Formerly in sun.misc
|
package sun.nio.ch; // Formerly in sun.misc
|
||||||
|
|
||||||
import java.nio.ByteOrder;
|
import java.nio.ByteOrder;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
|
|
||||||
// ## In the fullness of time, this class will be eliminated
|
// ## In the fullness of time, this class will be eliminated
|
||||||
|
@ -35,7 +35,7 @@ import java.nio.channels.*;
|
|||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.misc.Cleaner;
|
import sun.misc.Cleaner;
|
||||||
import sun.security.action.GetPropertyAction;
|
import sun.security.action.GetPropertyAction;
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.nio.fs;
|
package sun.nio.fs;
|
||||||
|
|
||||||
import sun.misc.ManagedLocalsThread;
|
import sun.misc.ManagedLocalsThread;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package sun.nio.fs;
|
package sun.nio.fs;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.misc.Cleaner;
|
import sun.misc.Cleaner;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package sun.nio.fs;
|
package sun.nio.fs;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Factory for native buffers.
|
* Factory for native buffers.
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
package sun.reflect;
|
package sun.reflect;
|
||||||
|
|
||||||
import java.lang.reflect.*;
|
import java.lang.reflect.*;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/** Shared functionality for all accessor generators */
|
/** Shared functionality for all accessor generators */
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ package sun.reflect;
|
|||||||
|
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/** Utility class which assists in calling Unsafe.defineClass() by
|
/** Utility class which assists in calling Unsafe.defineClass() by
|
||||||
creating a new class loader which delegates to the one needed in
|
creating a new class loader which delegates to the one needed in
|
||||||
|
@ -38,7 +38,7 @@ public class FieldInfo {
|
|||||||
private String signature;
|
private String signature;
|
||||||
private int modifiers;
|
private int modifiers;
|
||||||
// This is compatible with the old reflection implementation's
|
// 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;
|
private int slot;
|
||||||
|
|
||||||
// Not really necessary to provide a constructor since the VM
|
// Not really necessary to provide a constructor since the VM
|
||||||
|
@ -32,7 +32,7 @@ package sun.reflect;
|
|||||||
fields and methods of other classes. It is used to hold the code
|
fields and methods of other classes. It is used to hold the code
|
||||||
for dynamically-generated FieldAccessorImpl and MethodAccessorImpl
|
for dynamically-generated FieldAccessorImpl and MethodAccessorImpl
|
||||||
subclasses. (Use of the word "unsafe" was avoided in this class's
|
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
|
<P> The bug fix for 4486457 also necessitated disabling
|
||||||
verification for this class and all subclasses, as opposed to just
|
verification for this class and all subclasses, as opposed to just
|
||||||
|
@ -44,7 +44,7 @@ import sun.reflect.misc.ReflectUtil;
|
|||||||
subversion of both the language and the verifier. For this reason,
|
subversion of both the language and the verifier. For this reason,
|
||||||
they are all instance methods, and access to the constructor of
|
they are all instance methods, and access to the constructor of
|
||||||
this factory is guarded by a security check, in similar style to
|
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 {
|
public class ReflectionFactory {
|
||||||
|
@ -27,9 +27,9 @@ package sun.reflect;
|
|||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
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
|
observation is that there are only nine types of fields from the
|
||||||
standpoint of reflection code: the eight primitive types and
|
standpoint of reflection code: the eight primitive types and
|
||||||
Object. Using class Unsafe instead of generated bytecodes saves
|
Object. Using class Unsafe instead of generated bytecodes saves
|
||||||
|
@ -27,10 +27,10 @@ package sun.reflect;
|
|||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
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
|
* final or volatile qualifiers. These differ from unqualified
|
||||||
* versions in that (1) they check for read-only status (2) they use
|
* versions in that (1) they check for read-only status (2) they use
|
||||||
* the volatile forms of Unsafe get/put methods. (When accessed via
|
* the volatile forms of Unsafe get/put methods. (When accessed via
|
||||||
|
@ -28,9 +28,9 @@ package sun.reflect;
|
|||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
import java.security.AccessController;
|
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. */
|
static volatile fields. */
|
||||||
|
|
||||||
abstract class UnsafeQualifiedStaticFieldAccessorImpl
|
abstract class UnsafeQualifiedStaticFieldAccessorImpl
|
||||||
|
@ -28,9 +28,9 @@ package sun.reflect;
|
|||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
import java.security.AccessController;
|
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. The observation is that there are only nine types of
|
||||||
fields from the standpoint of reflection code: the eight primitive
|
fields from the standpoint of reflection code: the eight primitive
|
||||||
types and Object. Using class Unsafe instead of generated
|
types and Object. Using class Unsafe instead of generated
|
||||||
|
@ -337,7 +337,7 @@ public final class ReflectUtil {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if {@code Class cls} is a VM-anonymous class
|
* 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).
|
* (not to be confused with a Java Language anonymous inner class).
|
||||||
*/
|
*/
|
||||||
public static boolean isVMAnonymousClass(Class<?> cls) {
|
public static boolean isVMAnonymousClass(Class<?> cls) {
|
||||||
|
@ -31,7 +31,7 @@ import java.util.BitSet;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.security.action.GetIntegerAction;
|
import sun.security.action.GetIntegerAction;
|
||||||
import static sun.nio.ch.SolarisEventPort.*;
|
import static sun.nio.ch.SolarisEventPort.*;
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ package sun.nio.ch;
|
|||||||
import java.nio.channels.spi.AsynchronousChannelProvider;
|
import java.nio.channels.spi.AsynchronousChannelProvider;
|
||||||
import java.util.concurrent.RejectedExecutionException;
|
import java.util.concurrent.RejectedExecutionException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides an AsynchronousChannelGroup implementation based on the Solaris 10
|
* Provides an AsynchronousChannelGroup implementation based on the Solaris 10
|
||||||
|
@ -29,7 +29,7 @@ import java.nio.file.*;
|
|||||||
import java.nio.file.attribute.*;
|
import java.nio.file.attribute.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.UnixConstants.*;
|
import static sun.nio.fs.UnixConstants.*;
|
||||||
import static sun.nio.fs.SolarisConstants.*;
|
import static sun.nio.fs.SolarisConstants.*;
|
||||||
|
@ -30,7 +30,7 @@ import java.security.AccessController;
|
|||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.UnixConstants.*;
|
import static sun.nio.fs.UnixConstants.*;
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.locks.ReadWriteLock;
|
|||||||
import java.util.concurrent.locks.ReentrantReadWriteLock;
|
import java.util.concurrent.locks.ReentrantReadWriteLock;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import sun.security.action.GetPropertyAction;
|
import sun.security.action.GetPropertyAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Windows implementation of AsynchronousChannelGroup encapsulating an I/O
|
* Windows implementation of AsynchronousChannelGroup encapsulating an I/O
|
||||||
|
@ -27,7 +27,7 @@ package sun.nio.ch;
|
|||||||
|
|
||||||
import java.nio.channels.*;
|
import java.nio.channels.*;
|
||||||
import java.util.*;
|
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
|
* Maintains a mapping of pending I/O requests (identified by the address of
|
||||||
|
@ -33,7 +33,7 @@ import java.io.IOException;
|
|||||||
import java.security.AccessControlContext;
|
import java.security.AccessControlContext;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Windows implementation of AsynchronousServerSocketChannel using overlapped I/O.
|
* Windows implementation of AsynchronousServerSocketChannel using overlapped I/O.
|
||||||
|
@ -34,7 +34,7 @@ import java.io.IOException;
|
|||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedActionException;
|
import java.security.PrivilegedActionException;
|
||||||
import java.security.PrivilegedExceptionAction;
|
import java.security.PrivilegedExceptionAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Windows implementation of AsynchronousSocketChannel using overlapped I/O.
|
* Windows implementation of AsynchronousSocketChannel using overlapped I/O.
|
||||||
|
@ -28,7 +28,7 @@ package sun.nio.fs;
|
|||||||
import java.nio.file.attribute.*;
|
import java.nio.file.attribute.*;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.security.action.GetPropertyAction;
|
import sun.security.action.GetPropertyAction;
|
||||||
|
|
||||||
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
||||||
|
@ -33,7 +33,7 @@ import java.util.concurrent.ExecutorService;
|
|||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
import sun.nio.ch.ThreadPool;
|
import sun.nio.ch.ThreadPool;
|
||||||
import sun.security.util.SecurityConstants;
|
import sun.security.util.SecurityConstants;
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ import java.io.IOException;
|
|||||||
import java.io.IOError;
|
import java.io.IOError;
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
||||||
import static sun.nio.fs.WindowsConstants.*;
|
import static sun.nio.fs.WindowsConstants.*;
|
||||||
|
@ -27,7 +27,7 @@ package sun.nio.fs;
|
|||||||
|
|
||||||
import java.security.AccessController;
|
import java.security.AccessController;
|
||||||
import java.security.PrivilegedAction;
|
import java.security.PrivilegedAction;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Win32 and library calls.
|
* Win32 and library calls.
|
||||||
|
@ -29,7 +29,7 @@ import java.nio.file.ProviderMismatchException;
|
|||||||
import java.nio.file.attribute.*;
|
import java.nio.file.attribute.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
||||||
import static sun.nio.fs.WindowsConstants.*;
|
import static sun.nio.fs.WindowsConstants.*;
|
||||||
|
@ -31,7 +31,7 @@ import java.nio.ByteBuffer;
|
|||||||
import java.nio.channels.FileChannel;
|
import java.nio.channels.FileChannel;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
import static sun.nio.fs.WindowsNativeDispatcher.*;
|
||||||
import static sun.nio.fs.WindowsConstants.*;
|
import static sun.nio.fs.WindowsConstants.*;
|
||||||
|
@ -36,7 +36,7 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import com.sun.nio.file.ExtendedWatchEventModifier;
|
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.WindowsNativeDispatcher.*;
|
||||||
import static sun.nio.fs.WindowsConstants.*;
|
import static sun.nio.fs.WindowsConstants.*;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package sun.awt;
|
package sun.awt;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import javax.accessibility.AccessibleContext;
|
import javax.accessibility.AccessibleContext;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
|
@ -37,7 +37,7 @@ import sun.java2d.Disposer;
|
|||||||
import sun.java2d.pipe.BufferedContext;
|
import sun.java2d.pipe.BufferedContext;
|
||||||
import sun.java2d.pipe.RenderQueue;
|
import sun.java2d.pipe.RenderQueue;
|
||||||
import sun.java2d.pipe.hw.AccelGraphicsConfig;
|
import sun.java2d.pipe.hw.AccelGraphicsConfig;
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package sun.java2d.pipe;
|
package sun.java2d.pipe;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
package sun.swing;
|
package sun.swing;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
@ -31,7 +31,7 @@ import java.nio.ByteOrder;
|
|||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import sun.misc.Unsafe;
|
import jdk.internal.misc.Unsafe;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Motif DnD protocol global constants and convenience routines.
|
* Motif DnD protocol global constants and convenience routines.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user