8268594: runtime/handshake tests don't need WhiteBox after AOT removal

Reviewed-by: dholmes, mseledtsov
This commit is contained in:
Igor Ignatyev 2021-06-18 10:00:21 +00:00
parent 9f4f039231
commit 58eddc8110
2 changed files with 2 additions and 26 deletions
test/hotspot/jtreg/runtime/handshake

@ -36,20 +36,11 @@ import sun.hotspot.WhiteBox;
* @library /testlibrary /test/lib
* @build HandshakeTimeoutTest
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HandshakeTimeoutTest
* @run main HandshakeTimeoutTest
*/
public class HandshakeTimeoutTest {
public static void main(String[] args) throws Exception {
WhiteBox wb = WhiteBox.getWhiteBox();
Boolean useJVMCICompiler = wb.getBooleanVMFlag("UseJVMCICompiler");
String useJVMCICompilerStr;
if (useJVMCICompiler != null) {
useJVMCICompilerStr = useJVMCICompiler ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler";
} else {
// pass something innocuous
useJVMCICompilerStr = "-XX:+UnlockExperimentalVMOptions";
}
ProcessBuilder pb =
ProcessTools.createTestJvm(
"-Xbootclasspath/a:.",
@ -63,7 +54,6 @@ public class HandshakeTimeoutTest {
"-XX:+UnlockExperimentalVMOptions",
"-XX:HandshakeTimeout=50",
"-XX:-CreateCoredumpOnCrash",
useJVMCICompilerStr,
"HandshakeTimeoutTest$Test");
OutputAnalyzer output = ProcessTools.executeProcess(pb);

@ -26,31 +26,19 @@ import jdk.test.lib.Utils;
import jdk.test.lib.process.ProcessTools;
import jdk.test.lib.process.OutputAnalyzer;
import sun.hotspot.WhiteBox;
/*
* @test HandshakeTransitionTest
* @summary This does a sanity test of the poll in the native wrapper.
* @requires vm.debug
* @library /testlibrary /test/lib
* @build HandshakeTransitionTest
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI HandshakeTransitionTest
* @run main/native HandshakeTransitionTest
*/
public class HandshakeTransitionTest {
public static native void someTime(int ms);
public static void main(String[] args) throws Exception {
WhiteBox wb = WhiteBox.getWhiteBox();
Boolean useJVMCICompiler = wb.getBooleanVMFlag("UseJVMCICompiler");
String useJVMCICompilerStr;
if (useJVMCICompiler != null) {
useJVMCICompilerStr = useJVMCICompiler ? "-XX:+UseJVMCICompiler" : "-XX:-UseJVMCICompiler";
} else {
// pass something innocuous
useJVMCICompilerStr = "-XX:+UnlockExperimentalVMOptions";
}
ProcessBuilder pb =
ProcessTools.createTestJvm(
"-Djava.library.path=" + Utils.TEST_NATIVE_PATH,
@ -61,8 +49,6 @@ public class HandshakeTransitionTest {
"-XX:ParallelGCThreads=1",
"-XX:ConcGCThreads=1",
"-XX:CICompilerCount=2",
"-XX:+UnlockExperimentalVMOptions",
useJVMCICompilerStr,
"HandshakeTransitionTest$Test");
OutputAnalyzer output = ProcessTools.executeProcess(pb);