[9] RFR (L): 8059623: JEP-JDK-8043304: Test task: command line options tests

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Tue Dec 23 11:26:46 UTC 2014


Hi Filipp,

Thanks for pointing me at 8059613.  With that I could run the tests.

The ppc64 VM does not implement TieredCompilation, thus the tests fail.
Could you please apply something as the patch below?

Thanks,
  Goetz 


diff -r c79a7b921a03 test/compiler/codecache/cli/TestSegmentedCodeCacheOption.java
--- a/test/compiler/codecache/cli/TestSegmentedCodeCacheOption.java	Sat Dec 13 00:54:22 2014 +0300
+++ b/test/compiler/codecache/cli/TestSegmentedCodeCacheOption.java	Tue Dec 23 12:17:26 2014 +0100
@@ -170,6 +171,18 @@
     }
 
     public static void main(String args[]) throws Throwable {
+
+        // Check whether VM supports tiered compilation.
+        try {
+            CommandLineOptionTest.verifyJVMStartup(CommandLineOptionTest.prepareBooleanFlag(TIERED_COMPILATION, true),
+                                                   null,
+                                                   new String[]{ "TieredCompilation is disabled in this release." },
+                                                   "", "", ExitCode.OK);
+        } catch (Throwable e) {
+            System.out.println("Skipping the test as TieredCompilation is not implemented in this VM.");
+            return;
+        }
+
         for (TestCase testCase : TestCase.values()) {
             if (testCase.isApplicable()) {
                 System.out.println("Running test case: " + testCase.name());
diff -r c79a7b921a03 test/compiler/codecache/cli/codeheapsize/TestCodeHeapSizeOptions.java
--- a/test/compiler/codecache/cli/codeheapsize/TestCodeHeapSizeOptions.java	Sat Dec 13 00:54:22 2014 +0300
+++ b/test/compiler/codecache/cli/codeheapsize/TestCodeHeapSizeOptions.java	Tue Dec 23 12:17:26 2014 +0100
@@ -22,7 +22,9 @@
  */
 package codeheapsize;
 
+import com.oracle.java.testlibrary.ExitCode;
 import com.oracle.java.testlibrary.Platform;
+import com.oracle.java.testlibrary.cli.CommandLineOptionTest;
 import common.CodeCacheCLITestBase;
 import common.CodeCacheCLITestCase;
 import sun.hotspot.code.BlobType;
@@ -75,6 +77,18 @@
     }
 
     public static void main(String args[]) throws Throwable {
+
+        // Check whether VM supports tiered compilation.
+        try {
+            CommandLineOptionTest.verifyJVMStartup(CommandLineOptionTest.prepareBooleanFlag("TieredCompilation", true),
+                                                   null,
+                                                   new String[]{ "TieredCompilation is disabled in this release." },
+                                                   "", "", ExitCode.OK);
+        } catch (Throwable e) {
+            System.out.println("Skipping the test as TieredCompilation is not implemented in this VM.");
+            return;
+        }
+
         new TestCodeHeapSizeOptions().runTestCases();
     }
 }
diff -r c79a7b921a03 test/compiler/codecache/cli/printcodecache/TestPrintCodeCacheOption.java
--- a/test/compiler/codecache/cli/printcodecache/TestPrintCodeCacheOption.java	Sat Dec 13 00:54:22 2014 +0300
+++ b/test/compiler/codecache/cli/printcodecache/TestPrintCodeCacheOption.java	Tue Dec 23 12:17:26 2014 +0100
@@ -22,6 +22,8 @@
  */
 package printcodecache;
 
+import com.oracle.java.testlibrary.ExitCode;
+import com.oracle.java.testlibrary.cli.CommandLineOptionTest;
 import common.CodeCacheCLITestBase;
 import common.CodeCacheCLITestCase;
 import sun.hotspot.code.BlobType;
@@ -68,6 +70,17 @@
     }
 
     public static void main(String args[]) throws Throwable {
+
+        // Check whether VM supports tiered compilation.
+        try {
+            CommandLineOptionTest.verifyJVMStartup(CommandLineOptionTest.prepareBooleanFlag("TieredCompilation", true),
+                                                   null,
+                                                   new String[]{ "TieredCompilation is disabled in this release." },
+                                                   "", "", ExitCode.OK);
+        } catch (Throwable e) {
+            System.out.println("Skipping the test as TieredCompilation is not implemented in this VM.");
+            return;
+        }
         new TestPrintCodeCacheOption().runTestCases();
     }
 }


More information about the hotspot-compiler-dev mailing list