src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotVMConfigVerifier.java

Print this page
rev 10816 : 8153756: jdk.vm.ci should not depend on sun.misc ( jdk.unsupported module )
Reviewed-by:

*** 38,48 **** import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.Label; import jdk.internal.org.objectweb.asm.MethodVisitor; import jdk.internal.org.objectweb.asm.Opcodes; import jdk.internal.org.objectweb.asm.Type; ! import sun.misc.Unsafe; /** * A {@link ClassVisitor} that verifies {@link HotSpotVMConfig} does not access {@link Unsafe} from * any of its non-static, non-constructor methods. This ensures that a deserialized * {@link HotSpotVMConfig} object does not perform any unsafe reads on addresses that are only valid --- 38,48 ---- import jdk.internal.org.objectweb.asm.ClassVisitor; import jdk.internal.org.objectweb.asm.Label; import jdk.internal.org.objectweb.asm.MethodVisitor; import jdk.internal.org.objectweb.asm.Opcodes; import jdk.internal.org.objectweb.asm.Type; ! import jdk.internal.misc.Unsafe; /** * A {@link ClassVisitor} that verifies {@link HotSpotVMConfig} does not access {@link Unsafe} from * any of its non-static, non-constructor methods. This ensures that a deserialized * {@link HotSpotVMConfig} object does not perform any unsafe reads on addresses that are only valid