Skip to content

Commit a038142

Browse files
iignatevTatiana Pivovarova
authored andcommitted
8132919: Put compiler tests in packages
Reviewed-by: vlivanov, dpochepk
1 parent 4710cf6 commit a038142

File tree

942 files changed

+12526
-9257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

942 files changed

+12526
-9257
lines changed

hotspot/make/test/JtregNative.gmk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ BUILD_HOTSPOT_JTREG_NATIVE_SRC := \
5050
$(HOTSPOT_TOPDIR)/test/runtime/BoolReturn \
5151
$(HOTSPOT_TOPDIR)/test/compiler/floatingpoint/ \
5252
$(HOTSPOT_TOPDIR)/test/compiler/calls \
53-
$(HOTSPOT_TOPDIR)/test/compiler/native \
5453
$(HOTSPOT_TOPDIR)/test/serviceability/jvmti/GetNamedModule \
5554
$(HOTSPOT_TOPDIR)/test/testlibrary/jvmti \
5655
#

hotspot/test/TEST.groups

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ jre = \
130130
# Tests that require the full JRE
131131
#
132132
needs_jre = \
133-
compiler/c2/6852078/Test6852078.java \
134-
compiler/c2/7047069/Test7047069.java \
133+
compiler/c2/Test6852078.java \
134+
compiler/c2/Test7047069.java \
135135
runtime/6294277/SourceDebugExtension.java \
136136
runtime/ClassFile/JsrRewriting.java \
137137
runtime/ClassFile/OomWhileParsingRepeatedJsr.java \
@@ -277,16 +277,16 @@ hotspot_fast_compiler_1 = \
277277
compiler/arraycopy/ \
278278
compiler/c1/ \
279279
compiler/c2/ \
280-
-compiler/c2/5091921/Test6850611.java \
281-
-compiler/c2/5091921/Test6890943.java \
282-
-compiler/c2/5091921/Test6905845.java \
283-
-compiler/c2/6340864 \
284-
-compiler/c2/6589834 \
285-
-compiler/c2/6603011 \
286-
-compiler/c2/6912517 \
287-
-compiler/c2/6792161 \
288-
-compiler/c2/7070134 \
289-
-compiler/c2/8004867
280+
-compiler/c2/Test6850611.java \
281+
-compiler/c2/cr6890943/Test6890943.java \
282+
-compiler/c2/Test6905845.java \
283+
-compiler/c2/cr6340864 \
284+
-compiler/c2/cr6589834 \
285+
-compiler/c2/cr8004867
286+
-compiler/c2/stemmer \
287+
-compiler/c2/Test6792161.java \
288+
-compiler/c2/Test6603011.java \
289+
-compiler/c2/Test6912517.java \
290290

291291
hotspot_fast_compiler_2 = \
292292
compiler/classUnloading/ \
@@ -303,7 +303,7 @@ hotspot_fast_compiler_2 = \
303303
compiler/integerArithmetic/ \
304304
compiler/interpreter/ \
305305
compiler/jvmci/ \
306-
-compiler/codegen/7184394 \
306+
-compiler/codegen/aes \
307307
-compiler/codecache/stress \
308308
-compiler/gcbarriers/PreserveFPRegistersTest.java
309309

@@ -320,13 +320,13 @@ hotspot_fast_compiler_3 = \
320320
compiler/types/ \
321321
compiler/uncommontrap/ \
322322
compiler/unsafe/ \
323-
-compiler/intrinsics/adler32 \
324323
-compiler/intrinsics/bmi \
325324
-compiler/intrinsics/mathexact \
326-
-compiler/intrinsics/multiplytolen \
327325
-compiler/intrinsics/sha \
328-
-compiler/loopopts/7052494 \
329-
-compiler/runtime/6826736
326+
-compiler/intrinsics/bigInteger/TestMultiplyToLen.java \
327+
-compiler/intrinsics/zip/TestAdler32.java \
328+
-compiler/loopopts/Test7052494.java \
329+
-compiler/runtime/Test6826736.java
330330

331331
hotspot_fast_compiler_closed = \
332332
sanity/ExecuteInternalVMTests.java

hotspot/test/compiler/arguments/BMICommandLineOptionTestBase.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
* questions.
2222
*/
2323

24-
import jdk.test.lib.cli.*;
24+
package compiler.arguments;
25+
26+
import jdk.test.lib.cli.CPUSpecificCommandLineOptionTest;
27+
import jdk.test.lib.cli.CommandLineOptionTest;
2528

2629
/**
2730
* Base class for all X86 bit manipulation related command line options.

hotspot/test/compiler/arguments/BMISupportedCPUTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
* questions.
2222
*/
2323

24-
import jdk.test.lib.*;
25-
import jdk.test.lib.cli.*;
24+
package compiler.arguments;
25+
26+
import jdk.test.lib.ExitCode;
27+
import jdk.test.lib.cli.CommandLineOptionTest;
2628

2729
/**
2830
* Test on bit manipulation related command line options,

hotspot/test/compiler/arguments/BMIUnsupportedCPUTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@
2121
* questions.
2222
*/
2323

24-
import jdk.test.lib.*;
25-
import jdk.test.lib.cli.*;
24+
package compiler.arguments;
25+
26+
import jdk.test.lib.ExitCode;
27+
import jdk.test.lib.Platform;
28+
import jdk.test.lib.cli.CommandLineOptionTest;
2629

2730
/**
2831
* Test on bit manipulation related command line options,

hotspot/test/compiler/arguments/CheckCICompilerCount.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,22 @@
2121
* questions.
2222
*/
2323

24-
import jdk.test.lib.*;
25-
2624
/*
2725
* @test CheckCheckCICompilerCount
2826
* @bug 8130858
2927
* @bug 8132525
3028
* @summary Check that correct range of values for CICompilerCount are allowed depending on whether tiered is enabled or not
31-
* @library /testlibrary
29+
* @library /testlibrary /
3230
* @modules java.base/jdk.internal.misc
3331
* java.management
34-
* @run main CheckCICompilerCount
32+
* @run driver compiler.arguments.CheckCICompilerCount
3533
*/
3634

35+
package compiler.arguments;
36+
37+
import jdk.test.lib.OutputAnalyzer;
38+
import jdk.test.lib.ProcessTools;
39+
3740
public class CheckCICompilerCount {
3841
private static final String[][] NON_TIERED_ARGUMENTS = {
3942
{

hotspot/test/compiler/arguments/CheckCompileThresholdScaling.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,21 @@
2121
* questions.
2222
*/
2323

24-
import jdk.test.lib.*;
25-
2624
/*
2725
* @test CheckCompileThresholdScaling
2826
* @bug 8059604
29-
* @summary "Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)"
27+
* @summary Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)
3028
* @library /testlibrary
3129
* @modules java.base/jdk.internal.misc
3230
* java.management
33-
* @run main CheckCompileThresholdScaling
31+
* @run driver compiler.arguments.CheckCompileThresholdScaling
3432
*/
3533

34+
package compiler.arguments;
35+
36+
import jdk.test.lib.OutputAnalyzer;
37+
import jdk.test.lib.ProcessTools;
38+
3639
public class CheckCompileThresholdScaling {
3740

3841
// The flag CompileThresholdScaling scales compilation thresholds

hotspot/test/compiler/arguments/TestUseBMI1InstructionsOnSupportedCPU.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@
2626
* @bug 8031321
2727
* @summary Verify processing of UseBMI1Instructions option on CPU with
2828
* BMI1 feature support.
29-
* @library /testlibrary /test/lib
29+
* @library /testlibrary /test/lib /
3030
* @modules java.base/jdk.internal.misc
3131
* java.management
32-
* @build TestUseBMI1InstructionsOnSupportedCPU
33-
* BMISupportedCPUTest
34-
* @run main ClassFileInstaller sun.hotspot.WhiteBox
35-
* sun.hotspot.WhiteBox$WhiteBoxPermission
32+
* @build compiler.arguments.TestUseBMI1InstructionsOnSupportedCPU
33+
* compiler.arguments.BMISupportedCPUTest
34+
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
35+
* sun.hotspot.WhiteBox$WhiteBoxPermission
3636
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
37-
* -XX:+WhiteBoxAPI TestUseBMI1InstructionsOnSupportedCPU
37+
* -XX:+WhiteBoxAPI
38+
* compiler.arguments.TestUseBMI1InstructionsOnSupportedCPU
3839
*/
3940

40-
import sun.hotspot.cpuinfo.CPUInfo;
41-
import jdk.test.lib.*;
41+
package compiler.arguments;
4242

4343
public class TestUseBMI1InstructionsOnSupportedCPU
4444
extends BMISupportedCPUTest {

hotspot/test/compiler/arguments/TestUseBMI1InstructionsOnUnsupportedCPU.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,19 @@
2626
* @bug 8031321
2727
* @summary Verify processing of UseBMI1Instructions option on CPU without
2828
* BMI1 feature support.
29-
* @library /testlibrary /test/lib
29+
* @library /testlibrary /test/lib /
3030
* @modules java.base/jdk.internal.misc
3131
* java.management
32-
* @build TestUseBMI1InstructionsOnUnsupportedCPU
33-
* BMIUnsupportedCPUTest
34-
* @run main ClassFileInstaller sun.hotspot.WhiteBox
35-
* sun.hotspot.WhiteBox$WhiteBoxPermission
32+
* @build compiler.arguments.TestUseBMI1InstructionsOnUnsupportedCPU
33+
* compiler.arguments.BMIUnsupportedCPUTest
34+
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
35+
* sun.hotspot.WhiteBox$WhiteBoxPermission
3636
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
37-
* -XX:+WhiteBoxAPI TestUseBMI1InstructionsOnUnsupportedCPU
37+
* -XX:+WhiteBoxAPI
38+
* compiler.arguments.TestUseBMI1InstructionsOnUnsupportedCPU
3839
*/
3940

40-
import sun.hotspot.cpuinfo.CPUInfo;
41-
import jdk.test.lib.*;
42-
import jdk.test.lib.cli.*;
41+
package compiler.arguments;
4342

4443
public class TestUseBMI1InstructionsOnUnsupportedCPU
4544
extends BMIUnsupportedCPUTest {

hotspot/test/compiler/arguments/TestUseCompiler.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
* @test TestUseCompiler
2626
* @bug 8086068
2727
* @summary Tests execution with inconsistent UseCompiler flag combination.
28-
* @run main/othervm -Xint -XX:+UseCompiler TestUseCompiler
29-
* @run main/othervm -XX:+UseCompiler -Xint TestUseCompiler
28+
*
29+
* @run main/othervm -Xint -XX:+UseCompiler compiler.arguments.TestUseCompiler
30+
* @run main/othervm -XX:+UseCompiler -Xint compiler.arguments.TestUseCompiler
3031
*/
3132

33+
package compiler.arguments;
34+
3235
public class TestUseCompiler {
3336

3437
public static void main(String args[]) {

0 commit comments

Comments
 (0)