< prev index next >
test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNullableValueTypes.java
Print this page
rev 55127 : 8223351: [lworld] Primary mirror and nullable mirror for inline type
Reviewed-by: tbd
*** 62,76 ****
try {
Class<?> clazz = TestNullableValueTypes.class;
ClassLoader loader = clazz.getClassLoader();
MethodHandles.Lookup lookup = MethodHandles.lookup();
! MethodType test18_mt = MethodType.methodType(void.class, MyValue1.class.asBoxType());
test18_mh1 = lookup.findStatic(clazz, "test18_target1", test18_mt);
test18_mh2 = lookup.findStatic(clazz, "test18_target2", test18_mt);
! MethodType test19_mt = MethodType.methodType(void.class, MyValue1.class.asBoxType());
test19_mh1 = lookup.findStatic(clazz, "test19_target1", test19_mt);
test19_mh2 = lookup.findStatic(clazz, "test19_target2", test19_mt);
} catch (NoSuchMethodException | IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Method handle lookup failed");
--- 62,76 ----
try {
Class<?> clazz = TestNullableValueTypes.class;
ClassLoader loader = clazz.getClassLoader();
MethodHandles.Lookup lookup = MethodHandles.lookup();
! MethodType test18_mt = MethodType.methodType(void.class, MyValue1.class.asNullableType());
test18_mh1 = lookup.findStatic(clazz, "test18_target1", test18_mt);
test18_mh2 = lookup.findStatic(clazz, "test18_target2", test18_mt);
! MethodType test19_mt = MethodType.methodType(void.class, MyValue1.class.asNullableType());
test19_mh1 = lookup.findStatic(clazz, "test19_target1", test19_mt);
test19_mh2 = lookup.findStatic(clazz, "test19_target2", test19_mt);
} catch (NoSuchMethodException | IllegalAccessException e) {
e.printStackTrace();
throw new RuntimeException("Method handle lookup failed");
*** 466,476 ****
// Test c2c call passing null for a value type
@Test
@Warmup(10000) // Warmup to make sure 'test17_dontinline' is compiled
public boolean test16(Object arg) throws Exception {
! Method test16method = getClass().getMethod("test16_dontinline", MyValue1.class.asBoxType());
return (boolean)test16method.invoke(this, arg);
}
@DontCompile
public void test16_verifier(boolean warmup) throws Exception {
--- 466,476 ----
// Test c2c call passing null for a value type
@Test
@Warmup(10000) // Warmup to make sure 'test17_dontinline' is compiled
public boolean test16(Object arg) throws Exception {
! Method test16method = getClass().getMethod("test16_dontinline", MyValue1.class.asNullableType());
return (boolean)test16method.invoke(this, arg);
}
@DontCompile
public void test16_verifier(boolean warmup) throws Exception {
< prev index next >