Skip to content

Commit

Permalink
8318455: Fix the compiler/sharedstubs/SharedTrampolineTest.java and S…
Browse files Browse the repository at this point in the history
…haredStubToInterpTest.java

Reviewed-by: thartmann, shade, eastigeevich
  • Loading branch information
Evgeny Nikitin authored and TobiHartmann committed Oct 24, 2023
1 parent a644670 commit 4a16d11
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 0 additions & 2 deletions test/hotspot/jtreg/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ compiler/vectorapi/VectorLogicalOpIdentityTest.java 8302459 linux-x64,windows-x6

compiler/jvmci/TestUncaughtErrorInCompileMethod.java 8309073 generic-all

compiler/sharedstubs/SharedTrampolineTest.java 8318455 generic-all

compiler/codecache/CheckLargePages.java 8317831 linux-x64

#############################################################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@
public class SharedStubToInterpTest {
private final static int ITERATIONS_TO_HEAT_LOOP = 20_000;

private static void runTest(String test) throws Exception {
private static void runTest(String compiler, String test) throws Exception {
String testClassName = SharedStubToInterpTest.class.getName() + "$" + test;
ArrayList<String> command = new ArrayList<String>();
command.add(compiler);
command.add("-XX:+UnlockDiagnosticVMOptions");
command.add("-Xbatch");
command.add("-XX:+PrintRelocations");
Expand All @@ -80,7 +81,7 @@ private static void runTest(String test) throws Exception {
public static void main(String[] args) throws Exception {
String[] methods = new String[] { "StaticMethodTest", "FinalClassTest", "FinalMethodTest"};
for (String methodName : methods) {
runTest(methodName);
runTest(args[0], methodName);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* @bug 8280152
* @library /test/lib
*
* @requires vm.compiler2.enabled
* @requires vm.opt.TieredCompilation == null
* @requires os.arch=="aarch64" | os.arch=="riscv64"
* @requires vm.debug
Expand All @@ -46,9 +47,10 @@
public class SharedTrampolineTest {
private final static int ITERATIONS_TO_HEAT_LOOP = 20_000;

private static void runTest(String test) throws Exception {
private static void runTest(String compiler, String test) throws Exception {
String testClassName = SharedTrampolineTest.class.getName() + "$" + test;
ArrayList<String> command = new ArrayList<String>();
command.add(compiler);
command.add("-XX:+UnlockDiagnosticVMOptions");
command.add("-Xbatch");
command.add("-XX:+PrintRelocations");
Expand All @@ -72,7 +74,7 @@ private static void runTest(String test) throws Exception {
public static void main(String[] args) throws Exception {
String[] tests = new String[] {"StaticMethodTest"};
for (String test : tests) {
runTest(test);
runTest(args[0], test);
}
}

Expand Down

1 comment on commit 4a16d11

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.