< prev index next >

test/hotspot/jtreg/compiler/sharedstubs/SharedStubToInterpTest.java

Print this page
@@ -49,13 +49,14 @@
  import jdk.test.lib.process.ProcessTools;
  
  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");
          command.add("-XX:CompileCommand=compileonly," + testClassName + "::" + "test");
          command.add("-XX:CompileCommand=dontinline," + testClassName + "::" + "test");

@@ -78,11 +79,11 @@
      }
  
      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);
          }
      }
  
      private static void checkOutput(OutputAnalyzer output) {
          List<String> addrs = Pattern.compile("\\(static_stub\\) addr=(\\w+) .*\\[static_call=")
< prev index next >