--- old/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNewAcmp.java 2019-05-15 13:58:08.587858757 -0400 +++ new/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestNewAcmp.java 2019-05-15 13:58:08.211856892 -0400 @@ -38,10 +38,7 @@ import jdk.test.lib.process.OutputAnalyzer; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; -import java.lang.invoke.*; import java.lang.reflect.Method; -import java.util.regex.Pattern; -import java.util.regex.Matcher; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -1403,7 +1400,7 @@ if (args[i] != null && !parameterTypes[0].isInstance(args[i])) { continue; } - if (args[i] == null && parameterTypes[0] == MyValue1.class.asValueType()) { + if (args[i] == null && parameterTypes[0] == MyValue1.class.asPrimaryType()) { continue; } if (parameterCount == 1) { @@ -1425,7 +1422,7 @@ if (args[j] != null && !parameterTypes[1].isInstance(args[j])) { continue; } - if (args[j] == null && parameterTypes[1] == MyValue1.class.asValueType()) { + if (args[j] == null && parameterTypes[1] == MyValue1.class.asPrimaryType()) { continue; } System.out.print("Testing " + m.getName() + "(" + args[i] + ", " + args[j] + ")"); @@ -1513,14 +1510,14 @@ compiled = WHITE_BOX.isMethodCompiled(cmpSometimesEqual1_m, false); res = cmpSometimesEqual1(args[idx]); if (ACmpOnValues != 3) { - Asserts.assertEQ(res, args[idx] == null || !args[idx].getClass().isValue()); + Asserts.assertEQ(res, args[idx] == null || !args[idx].getClass().isInlineClass()); } else if (compiled) { Asserts.assertTrue(res); } compiled = WHITE_BOX.isMethodCompiled(cmpSometimesEqual2_m, false); res = cmpSometimesEqual2(args[idx]); if (ACmpOnValues != 3) { - Asserts.assertNE(res, args[idx] == null || !args[idx].getClass().isValue()); + Asserts.assertNE(res, args[idx] == null || !args[idx].getClass().isInlineClass()); } else if (compiled) { Asserts.assertFalse(res); }