--- old/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestUnloadedValueTypeField.java 2019-03-06 21:28:08.086572802 -0800 +++ new/test/hotspot/jtreg/compiler/valhalla/valuetypes/TestUnloadedValueTypeField.java 2019-03-06 21:28:07.834563949 -0800 @@ -27,24 +27,33 @@ * @summary Test the handling of fields of unloaded value classes. * @compile -XDallowWithFieldOperator hack/GetUnresolvedValueFieldWrongSignature.java * @compile -XDallowWithFieldOperator TestUnloadedValueTypeField.java - * @run main/othervm -XX:+EnableValhalla -Xcomp + * @run main/othervm -XX:+EnableValhalla -Xcomp -XX:+Inline * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test1 + * -XX:CompileCommand=print,TestUnloadedValueTypeField::test1 * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test2 * -XX:CompileCommand=compileonly,GetUnresolvedValueFieldWrongSignature::test3 * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test4 * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test5 + * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test11 + * -XX:CompileCommand=compileonly,TestUnloadedValueTypeField::test12 * TestUnloadedValueTypeField */ import jdk.test.lib.Asserts; public class TestUnloadedValueTypeField { + static final int WARMUP_LOOPS = 10000; static public void main(String[] args) { + // instance fields test1_verifier(); test2_verifier(); test3_verifier(); test4_verifier(); test5_verifier(); + + // static fields + test11_verifier(); + test12_verifier(); } // Test case 1: @@ -85,13 +94,13 @@ } static void test1_verifier() { - for (int i=0; i<10000; i++) { + for (int i=0; i