hotspot/test/compiler/jvmci/compilerToVM/ResolveFieldInPoolTest.java
changeset 41092 c388d897472d
parent 40855 3c4c913195e3
child 41705 332239c052cc
equal deleted inserted replaced
41091:de3789bb384e 41092:c388d897472d
    51 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.Validator;
    51 import compiler.jvmci.compilerToVM.ConstantPoolTestCase.Validator;
    52 import compiler.jvmci.compilerToVM.ConstantPoolTestsHelper.DummyClasses;
    52 import compiler.jvmci.compilerToVM.ConstantPoolTestsHelper.DummyClasses;
    53 import jdk.internal.misc.Unsafe;
    53 import jdk.internal.misc.Unsafe;
    54 import jdk.internal.org.objectweb.asm.Opcodes;
    54 import jdk.internal.org.objectweb.asm.Opcodes;
    55 import jdk.test.lib.Asserts;
    55 import jdk.test.lib.Asserts;
    56 import jdk.test.lib.unsafe.UnsafeHelper;
       
    57 import jdk.vm.ci.hotspot.CompilerToVMHelper;
    56 import jdk.vm.ci.hotspot.CompilerToVMHelper;
    58 import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
    57 import jdk.vm.ci.hotspot.HotSpotResolvedObjectType;
    59 import jdk.vm.ci.meta.ConstantPool;
    58 import jdk.vm.ci.meta.ConstantPool;
    60 
    59 
    61 import java.lang.reflect.Field;
    60 import java.lang.reflect.Field;
    67 /**
    66 /**
    68  * Test for {@code jdk.vm.ci.hotspot.CompilerToVM.resolveFieldInPool} method
    67  * Test for {@code jdk.vm.ci.hotspot.CompilerToVM.resolveFieldInPool} method
    69  */
    68  */
    70 public class ResolveFieldInPoolTest {
    69 public class ResolveFieldInPoolTest {
    71 
    70 
    72     private static final Unsafe UNSAFE = UnsafeHelper.getUnsafe();
    71     private static final Unsafe UNSAFE = Unsafe.getUnsafe();
    73 
    72 
    74     public static void main(String[] args) throws Exception {
    73     public static void main(String[] args) throws Exception {
    75         Map<ConstantTypes, Validator> typeTests = new HashMap<>();
    74         Map<ConstantTypes, Validator> typeTests = new HashMap<>();
    76         typeTests.put(CONSTANT_FIELDREF, ResolveFieldInPoolTest::validate);
    75         typeTests.put(CONSTANT_FIELDREF, ResolveFieldInPoolTest::validate);
    77         ConstantPoolTestCase testCase = new ConstantPoolTestCase(typeTests);
    76         ConstantPoolTestCase testCase = new ConstantPoolTestCase(typeTests);