File tree 2 files changed +7
-4
lines changed
test/hotspot/jtreg/compiler/sharedstubs
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 51
51
public class SharedStubToInterpTest {
52
52
private final static int ITERATIONS_TO_HEAT_LOOP = 20_000 ;
53
53
54
- private static void runTest (String test ) throws Exception {
54
+ private static void runTest (String compiler , String test ) throws Exception {
55
55
String testClassName = SharedStubToInterpTest .class .getName () + "$" + test ;
56
56
ArrayList <String > command = new ArrayList <String >();
57
+ command .add (compiler );
57
58
command .add ("-XX:+UnlockDiagnosticVMOptions" );
58
59
command .add ("-Xbatch" );
59
60
command .add ("-XX:+PrintRelocations" );
@@ -80,7 +81,7 @@ private static void runTest(String test) throws Exception {
80
81
public static void main (String [] args ) throws Exception {
81
82
String [] methods = new String [] { "StaticMethodTest" , "FinalClassTest" , "FinalMethodTest" };
82
83
for (String methodName : methods ) {
83
- runTest (methodName );
84
+ runTest (args [ 0 ], methodName );
84
85
}
85
86
}
86
87
Original file line number Diff line number Diff line change 28
28
* @bug 8280152
29
29
* @library /test/lib
30
30
*
31
+ * @requires vm.compiler2.enabled
31
32
* @requires vm.opt.TieredCompilation == null
32
33
* @requires os.arch=="aarch64" | os.arch=="riscv64"
33
34
* @requires vm.debug
46
47
public class SharedTrampolineTest {
47
48
private final static int ITERATIONS_TO_HEAT_LOOP = 20_000 ;
48
49
49
- private static void runTest (String test ) throws Exception {
50
+ private static void runTest (String compiler , String test ) throws Exception {
50
51
String testClassName = SharedTrampolineTest .class .getName () + "$" + test ;
51
52
ArrayList <String > command = new ArrayList <String >();
53
+ command .add (compiler );
52
54
command .add ("-XX:+UnlockDiagnosticVMOptions" );
53
55
command .add ("-Xbatch" );
54
56
command .add ("-XX:+PrintRelocations" );
@@ -72,7 +74,7 @@ private static void runTest(String test) throws Exception {
72
74
public static void main (String [] args ) throws Exception {
73
75
String [] tests = new String [] {"StaticMethodTest" };
74
76
for (String test : tests ) {
75
- runTest (test );
77
+ runTest (args [ 0 ], test );
76
78
}
77
79
}
78
80
You can’t perform that action at this time.
0 commit comments