8179064: TestInterpreterMethodEntries.java is missing -XX:+UnlockDiagnosticVMOptions
authorehelin
Fri, 21 Apr 2017 08:24:48 +0200
changeset 46399 ba815aa3765d
parent 46398 a70022fa3ec2
child 46401 88f27ae830d6
8179064: TestInterpreterMethodEntries.java is missing -XX:+UnlockDiagnosticVMOptions Reviewed-by: ctornqvi, gtriantafill
hotspot/test/runtime/SharedArchiveFile/TestInterpreterMethodEntries.java
--- a/hotspot/test/runtime/SharedArchiveFile/TestInterpreterMethodEntries.java	Fri Apr 21 10:43:43 2017 +0200
+++ b/hotspot/test/runtime/SharedArchiveFile/TestInterpreterMethodEntries.java	Fri Apr 21 08:24:48 2017 +0200
@@ -62,6 +62,8 @@
     }
 
     private static void dumpAndUseSharedArchive(String dump, String use) throws Exception {
+        String unlock     = "-XX:+UnlockDiagnosticVMOptions";
+
         String dumpFMA    = "-XX:" + dump + "UseFMA";
         String dumpCRC32  = "-XX:" + dump + "UseCRC32Intrinsics";
         String dumpCRC32C = "-XX:" + dump + "UseCRC32CIntrinsics";
@@ -69,10 +71,10 @@
         String useCRC32   = "-XX:" + use  + "UseCRC32Intrinsics";
         String useCRC32C  = "-XX:" + use  + "UseCRC32CIntrinsics";
 
-        CDSTestUtils.createArchiveAndCheck(dumpFMA, dumpCRC32, dumpCRC32C);
+        CDSTestUtils.createArchiveAndCheck(unlock, dumpFMA, dumpCRC32, dumpCRC32C);
 
         CDSOptions opts = (new CDSOptions())
-            .addPrefix(useFMA, useCRC32, useCRC32C, "-showversion")
+            .addPrefix(unlock, useFMA, useCRC32, useCRC32C, "-showversion")
             .addSuffix("TestInterpreterMethodEntries", "run")
             .setUseVersion(false);
         CDSTestUtils.runWithArchiveAndCheck(opts);