< prev index next >

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

Print this page

        

*** 20,39 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.vm.ci.hotspot; ! import static java.lang.String.*; ! import java.io.*; ! import java.lang.reflect.*; ! import java.util.*; ! ! import jdk.internal.org.objectweb.asm.*; import jdk.internal.org.objectweb.asm.Type; ! import jdk.vm.ci.common.*; ! import sun.misc.*; /** * 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 --- 20,48 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package jdk.vm.ci.hotspot; ! import static java.lang.String.format; ! import java.io.IOException; ! import java.io.InputStream; ! import java.lang.reflect.Constructor; ! import java.lang.reflect.Executable; ! import java.lang.reflect.Method; ! import java.lang.reflect.Modifier; ! import java.util.Arrays; ! import java.util.Objects; ! ! import jdk.vm.ci.common.JVMCIError; ! import jdk.internal.org.objectweb.asm.ClassReader; ! 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
< prev index next >