< prev index next >
test/runtime/SharedArchiveFile/TestInterpreterMethodEntries.java
Print this page
rev 12887 : 8179064: TestInterpreterMethodEntries.java is missing -XX:+UnlockDiagnosticVMOptions
*** 60,80 ****
crc32c.update(buffer, 0, 256);
}
}
private static void dumpAndUseSharedArchive(String dump, String use) throws Exception {
String dumpFMA = "-XX:" + dump + "UseFMA";
String dumpCRC32 = "-XX:" + dump + "UseCRC32Intrinsics";
String dumpCRC32C = "-XX:" + dump + "UseCRC32CIntrinsics";
String useFMA = "-XX:" + use + "UseFMA";
String useCRC32 = "-XX:" + use + "UseCRC32Intrinsics";
String useCRC32C = "-XX:" + use + "UseCRC32CIntrinsics";
! CDSTestUtils.createArchiveAndCheck(dumpFMA, dumpCRC32, dumpCRC32C);
CDSOptions opts = (new CDSOptions())
! .addPrefix(useFMA, useCRC32, useCRC32C, "-showversion")
.addSuffix("TestInterpreterMethodEntries", "run")
.setUseVersion(false);
CDSTestUtils.runWithArchiveAndCheck(opts);
}
}
--- 60,82 ----
crc32c.update(buffer, 0, 256);
}
}
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";
String useFMA = "-XX:" + use + "UseFMA";
String useCRC32 = "-XX:" + use + "UseCRC32Intrinsics";
String useCRC32C = "-XX:" + use + "UseCRC32CIntrinsics";
! CDSTestUtils.createArchiveAndCheck(unlock, dumpFMA, dumpCRC32, dumpCRC32C);
CDSOptions opts = (new CDSOptions())
! .addPrefix(unlock, useFMA, useCRC32, useCRC32C, "-showversion")
.addSuffix("TestInterpreterMethodEntries", "run")
.setUseVersion(false);
CDSTestUtils.runWithArchiveAndCheck(opts);
}
}
< prev index next >