< prev index next >

test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNativeClone.java

Print this page

        

*** 55,65 **** public class TestNativeClone { private static final MethodHandle cloneValue = MethodHandleBuilder.loadCode(MethodHandles.lookup(), "MyValue", ! MethodType.methodType(Object.class, MyValue.class), CODE -> { CODE. aload_0(). invokevirtual(Object.class, "clone", "()Ljava/lang/Object;", false). areturn(); --- 55,65 ---- public class TestNativeClone { private static final MethodHandle cloneValue = MethodHandleBuilder.loadCode(MethodHandles.lookup(), "MyValue", ! MethodType.methodType(Object.class, MyValue.class.asValueType()), CODE -> { CODE. aload_0(). invokevirtual(Object.class, "clone", "()Ljava/lang/Object;", false). areturn();
< prev index next >