Skip to content

Commit

Permalink
8266150: mark hotspot compiler/arguments tests which ignore VM flags
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
iignatev committed Apr 27, 2021
1 parent feb18d2 commit eeddb30
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -26,6 +26,7 @@
* @bug 8130858 8132525 8162881
* @summary Check that correct range of values for CICompilerCount are allowed depending on whether tiered is enabled or not
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
* @run driver compiler.arguments.CheckCICompilerCount
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand All @@ -26,8 +26,10 @@
* @bug 8059604
* @summary Add CompileThresholdScaling flag to control when methods are first compiled (with +/-TieredCompilation)
* @library /test/lib
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
* @run driver compiler.arguments.CheckCompileThresholdScaling
*/

Expand Down
Expand Up @@ -27,6 +27,7 @@
* @bug 8033441
* @summary Test to ensure that line numbers are now present with the -XX:+PrintOptoAssembly command line option
*
* @requires vm.flagless
* @requires vm.compiler2.enabled & vm.debug == true
*
* @library /test/lib
Expand Down Expand Up @@ -56,7 +57,7 @@ public static void main(String[] args) throws Throwable {

if (oa.getOutput().contains("TestPrintOptoAssemblyLineNumbers$CheckC2OptoAssembly::main @ bci:11")) {
// if C2 optimizer invoked ensure output includes line numbers:
oa.stdoutShouldContain("TestPrintOptoAssemblyLineNumbers$CheckC2OptoAssembly::main @ bci:11 (line 71)");
oa.stdoutShouldContain("TestPrintOptoAssemblyLineNumbers$CheckC2OptoAssembly::main @ bci:11 (line 72)");
}
}

Expand All @@ -68,7 +69,7 @@ public static boolean foo(String arg) {
public static void main(String[] args) {
int count = 0;
for (int x = 0; x < 200_000; x++) {
if (foo("something" + x)) { // <- test expects this line of code to be on line 71
if (foo("something" + x)) { // <- test expects this line of code to be on line 72
count += 1;
}
}
Expand Down
Expand Up @@ -27,8 +27,10 @@
* @summary Verify processing of UseBMI1Instructions option on CPU with
* BMI1 feature support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
* @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
Expand Down
Expand Up @@ -27,8 +27,10 @@
* @summary Verify processing of UseBMI1Instructions option on CPU without
* BMI1 feature support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
* @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
Expand Down
Expand Up @@ -27,6 +27,7 @@
* @summary Verify processing of UseCountLeadingZerosInstruction option
* on CPU with LZCNT support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
Expand Down
Expand Up @@ -27,6 +27,7 @@
* @summary Verify processing of UseCountLeadingZerosInstruction option
* on CPU without LZCNT support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
Expand Down
Expand Up @@ -27,6 +27,7 @@
* @summary Verify processing of UseCountTrailingZerosInstruction option
* on CPU with TZCNT (BMI1 feature) support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
Expand Down
Expand Up @@ -27,6 +27,7 @@
* @summary Verify processing of UseCountTrailingZerosInstruction option
* on CPU without TZCNT instruction (BMI1 feature) support.
* @library /test/lib /
* @requires vm.flagless
* @modules java.base/jdk.internal.misc
* java.management
*
Expand Down

1 comment on commit eeddb30

@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.