8132920: use package in compiler testlibraries

Reviewed-by: kvn, psandoz
This commit is contained in:
Igor Ignatyev 2016-06-22 00:29:32 +03:00
parent 300dc664ff
commit 23e0d96f6e
130 changed files with 516 additions and 498 deletions

View file

@ -25,19 +25,17 @@
* @test * @test
* @bug 8072016 * @bug 8072016
* @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation * @summary Infinite deoptimization/recompilation cycles in case of arraycopy with tightly coupled allocation
* @library /testlibrary /test/lib /compiler/whitebox / * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestArrayCopyNoInitDeopt * @build TestArrayCopyNoInitDeopt
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ClassFileInstaller jdk.test.lib.Platform * jdk.test.lib.Platform
* @run main/othervm -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=020 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:TypeProfileLevel=020
* TestArrayCopyNoInitDeopt * TestArrayCopyNoInitDeopt
*
*/ */
import sun.hotspot.WhiteBox; import sun.hotspot.WhiteBox;
import sun.hotspot.code.NMethod; import sun.hotspot.code.NMethod;
import jdk.test.lib.Platform; import jdk.test.lib.Platform;

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=compileonly * @summary Tests CompileCommand=compileonly
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commandfile.CompileOnlyTest * @build compiler.compilercontrol.commandfile.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=exclude * @summary Tests CompileCommand=exclude
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commandfile.ExcludeTest * @build compiler.compilercontrol.commandfile.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=log * @summary Tests CompileCommand=log
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commandfile.LogTest * @build compiler.compilercontrol.commandfile.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=print * @summary Tests CompileCommand=print
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commandfile.PrintTest * @build compiler.compilercontrol.commandfile.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=compileonly * @summary Tests CompileCommand=compileonly
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commands.CompileOnlyTest * @build compiler.compilercontrol.commands.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=exclude * @summary Tests CompileCommand=exclude
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commands.ExcludeTest * @build compiler.compilercontrol.commands.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=log * @summary Tests CompileCommand=log
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commands.LogTest * @build compiler.compilercontrol.commands.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests CompileCommand=print * @summary Tests CompileCommand=print
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.commands.PrintTest * @build compiler.compilercontrol.commands.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests directives to be able to compile only specified methods * @summary Tests directives to be able to compile only specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.directives.CompileOnlyTest * @build compiler.compilercontrol.directives.CompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests directives to be able to exclude methods from compilation * @summary Tests directives to be able to exclude methods from compilation
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.directives.ExcludeTest * @build compiler.compilercontrol.directives.ExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests directives to be able to turn on LogCompilation * @summary Tests directives to be able to turn on LogCompilation
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.directives.LogTest * @build compiler.compilercontrol.directives.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests directives to be able to turn on print_assembly * @summary Tests directives to be able to turn on print_assembly
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.directives.PrintTest * @build compiler.compilercontrol.directives.PrintTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests directives to be able to add and remove directives * @summary Tests directives to be able to add and remove directives
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.AddAndRemoveTest * @build compiler.compilercontrol.jcmd.AddAndRemoveTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests jcmd to be able to add a directive to compile only specified methods * @summary Tests jcmd to be able to add a directive to compile only specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.AddCompileOnlyTest * @build compiler.compilercontrol.jcmd.AddCompileOnlyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests jcmd to be able to add a directive to exclude only specified methods * @summary Tests jcmd to be able to add a directive to exclude only specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.AddExcludeTest * @build compiler.compilercontrol.jcmd.AddExcludeTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests jcmd to be able to add a directive to log only specified methods * @summary Tests jcmd to be able to add a directive to log only specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.AddLogTest * @build compiler.compilercontrol.jcmd.AddLogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -27,7 +27,7 @@
* @summary Tests jcmd to be able to add a directive to print assembly * @summary Tests jcmd to be able to add a directive to print assembly
* only for specified methods * only for specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.AddPrintAssemblyTest * @build compiler.compilercontrol.jcmd.AddPrintAssemblyTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -27,7 +27,7 @@
* @ignore 8140405 * @ignore 8140405
* @summary Tests jcmd to be able to clear directives added via options * @summary Tests jcmd to be able to clear directives added via options
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.ClearDirectivesFileStackTest * @build compiler.compilercontrol.jcmd.ClearDirectivesFileStackTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests clear JCMD command * @summary Tests clear JCMD command
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.ClearDirectivesStackTest * @build compiler.compilercontrol.jcmd.ClearDirectivesStackTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests jcmd to be able to add a directive to compile only specified methods * @summary Tests jcmd to be able to add a directive to compile only specified methods
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @requires vm.flavor != "minimal" * @requires vm.flavor != "minimal"
* @build compiler.compilercontrol.jcmd.PrintDirectivesTest * @build compiler.compilercontrol.jcmd.PrintDirectivesTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox

View file

@ -27,7 +27,7 @@
* @summary Tests jcmd to be able to add a lot of huge directive files with * @summary Tests jcmd to be able to add a lot of huge directive files with
* parallel executed jcmds until timeout has reached * parallel executed jcmds until timeout has reached
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest * @build compiler.compilercontrol.jcmd.StressAddMultiThreadedTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils * compiler.testlibrary.CompilerUtils

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Tests LogCompilation executed standalone without log commands or directives * @summary Tests LogCompilation executed standalone without log commands or directives
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.logcompilation.LogTest * @build compiler.compilercontrol.logcompilation.LogTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -21,6 +21,19 @@
* questions. * questions.
*/ */
/*
* @test
* @bug 8135068
* @summary Tests CompilerCommand's method matcher
* @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.matcher.MethodMatcherTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI compiler.compilercontrol.matcher.MethodMatcherTest
*/
package compiler.compilercontrol.matcher; package compiler.compilercontrol.matcher;
import jdk.test.lib.Pair; import jdk.test.lib.Pair;
@ -36,18 +49,6 @@ import java.util.concurrent.Callable;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/*
* @test
* @bug 8135068
* @summary Tests CompilerCommand's method matcher
* @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox ../share /
* @build compiler.compilercontrol.matcher.MethodMatcherTest
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI compiler.compilercontrol.matcher.MethodMatcherTest
*/
public class MethodMatcherTest { public class MethodMatcherTest {
private static final WhiteBox WB = WhiteBox.getWhiteBox(); private static final WhiteBox WB = WhiteBox.getWhiteBox();
private static final PoolHelper POOL = new PoolHelper(); private static final PoolHelper POOL = new PoolHelper();

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Randomly generates commands with random types * @summary Randomly generates commands with random types
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.mixed.RandomCommandsTest * @build compiler.compilercontrol.mixed.RandomCommandsTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -26,7 +26,7 @@
* @bug 8137167 * @bug 8137167
* @summary Randomly generates valid commands with random types * @summary Randomly generates valid commands with random types
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/testlibrary ../share / * @library /testlibrary /test/lib ../share /
* @build compiler.compilercontrol.mixed.RandomValidCommandsTest * @build compiler.compilercontrol.mixed.RandomValidCommandsTest
* pool.sub.* pool.subpack.* sun.hotspot.WhiteBox * pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
* compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.* * compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*

View file

@ -21,24 +21,25 @@
* questions. * questions.
* *
*/ */
import jdk.test.lib.OutputAnalyzer;
import jdk.test.lib.Platform;
import jdk.test.lib.ProcessTools;
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox * @library /testlibrary /test/lib /compiler/codegen/7184394 /
* /compiler/testlibrary /compiler/codegen/7184394
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @ignore 8146128 * @ignore 8146128
* @build TestAESIntrinsicsOnSupportedConfig TestAESMain * @build TestAESIntrinsicsOnSupportedConfig TestAESMain
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch * -XX:+WhiteBoxAPI -Xbatch
* TestAESIntrinsicsOnSupportedConfig * TestAESIntrinsicsOnSupportedConfig
*/ */
import jdk.test.lib.OutputAnalyzer;
import jdk.test.lib.Platform;
import jdk.test.lib.ProcessTools;
public class TestAESIntrinsicsOnSupportedConfig extends AESIntrinsicsBase { public class TestAESIntrinsicsOnSupportedConfig extends AESIntrinsicsBase {
/** /**

View file

@ -22,22 +22,22 @@
* *
*/ */
/*
* @test
* @library /testlibrary /test/lib /compiler/codegen/7184394 /
* @modules java.base/jdk.internal.misc
* java.management
* @build TestAESIntrinsicsOnUnsupportedConfig TestAESMain
* @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch TestAESIntrinsicsOnUnsupportedConfig
*/
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import jdk.test.lib.OutputAnalyzer; import jdk.test.lib.OutputAnalyzer;
import jdk.test.lib.ProcessTools; import jdk.test.lib.ProcessTools;
/*
* @test
* @library /testlibrary /test/lib /compiler/whitebox
* /compiler/testlibrary /compiler/codegen/7184394
* @modules java.base/jdk.internal.misc
* java.management
* @build TestAESIntrinsicsOnUnsupportedConfig TestAESMain
* @run main ClassFileInstaller
* sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch TestAESIntrinsicsOnUnsupportedConfig
*/
public class TestAESIntrinsicsOnUnsupportedConfig extends AESIntrinsicsBase { public class TestAESIntrinsicsOnUnsupportedConfig extends AESIntrinsicsBase {
private static final String INTRINSICS_NOT_AVAILABLE_MSG = "warning: AES " private static final String INTRINSICS_NOT_AVAILABLE_MSG = "warning: AES "

View file

@ -25,11 +25,12 @@
* @test * @test
* @bug 8063086 * @bug 8063086
* @summary X^2 special case for C2 yields different result than interpreter * @summary X^2 special case for C2 yields different result than interpreter
* @library /testlibrary /test/lib /compiler/whitebox / * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @modules java.management * @modules java.management
* @build TestPow2 * @build TestPow2
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestPow2 * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestPow2
* *

View file

@ -20,19 +20,14 @@
* or visit www.oracle.com if you need additional information or have any * or visit www.oracle.com if you need additional information or have any
* questions. * questions.
*/ */
import java.lang.reflect.Executable;
import java.util.concurrent.Callable;
import java.util.Objects;
import jdk.test.lib.*;
import compiler.whitebox.CompilerWhiteBoxTest;
/* /*
* @test * @test
* @bug 8130832 * @bug 8130832
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox /compiler/testlibrary / * @library /testlibrary /test/lib /
* @build IntrinsicAvailableTest * @build IntrinsicAvailableTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. * @run main/othervm -Xbootclasspath/a:.
* -XX:+UnlockDiagnosticVMOptions * -XX:+UnlockDiagnosticVMOptions
@ -45,6 +40,14 @@ import compiler.whitebox.CompilerWhiteBoxTest;
* -XX:-UseCRC32Intrinsics * -XX:-UseCRC32Intrinsics
* IntrinsicAvailableTest * IntrinsicAvailableTest
*/ */
import java.lang.reflect.Executable;
import java.util.concurrent.Callable;
import java.util.Objects;
import jdk.test.lib.*;
import compiler.whitebox.CompilerWhiteBoxTest;
public class IntrinsicAvailableTest extends CompilerWhiteBoxTest { public class IntrinsicAvailableTest extends CompilerWhiteBoxTest {
protected String VMName; protected String VMName;

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build AndnTestI * @build AndnTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/bootclasspath/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/bootclasspath/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions AndnTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions AndnTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build AndnTestL * @build AndnTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/bootclasspath/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/bootclasspath/othervm -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions AndnTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions AndnTestL

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsiTestI * @build BlsiTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsiTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsiTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsiTestL * @build BlsiTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsiTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsiTestL

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsmskTestI * @build BlsmskTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsmskTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsmskTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsmskTestL * @build BlsmskTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsmskTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsmskTestL

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsrTestI * @build BlsrTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsrTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsrTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build BlsrTestL * @build BlsrTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsrTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseBMI1Instructions BlsrTestL

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build LZcntTestI * @build LZcntTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build LZcntTestL * @build LZcntTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountLeadingZerosInstruction LZcntTestL

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TZcntTestI * @build TZcntTestI
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountTrailingZerosInstruction TZcntTestI * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountTrailingZerosInstruction TZcntTestI

View file

@ -24,11 +24,11 @@
/* /*
* @test * @test
* @bug 8031321 * @bug 8031321
* @library /testlibrary /test/lib /compiler/whitebox / .. * @library /testlibrary /test/lib / ..
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TZcntTestL * @build TZcntTestL
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -Xbootclasspath/a:. -Xbatch -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountTrailingZerosInstruction TZcntTestL * -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCountTrailingZerosInstruction TZcntTestL

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build AddExactIntTest * @build AddExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics AddExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics AddExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class AddExactIntTest { public class AddExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build AddExactLongTest * @build AddExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics AddExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics AddExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class AddExactLongTest { public class AddExactLongTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build DecrementExactIntTest * @build DecrementExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics DecrementExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics DecrementExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class DecrementExactIntTest { public class DecrementExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build DecrementExactLongTest * @build DecrementExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics DecrementExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics DecrementExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class DecrementExactLongTest { public class DecrementExactLongTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build IncrementExactIntTest * @build IncrementExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics IncrementExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics IncrementExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class IncrementExactIntTest { public class IncrementExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build IncrementExactLongTest * @build IncrementExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics IncrementExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics IncrementExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class IncrementExactLongTest { public class IncrementExactLongTest {

View file

@ -22,12 +22,13 @@
*/ */
import jdk.test.lib.Platform; import jdk.test.lib.Platform;
import intrinsics.Verifier;
import java.io.FileOutputStream; import java.io.FileOutputStream;
import java.lang.reflect.Executable; import java.lang.reflect.Executable;
import java.util.Properties; import java.util.Properties;
import compiler.whitebox.CompilerWhiteBoxTest; import compiler.whitebox.CompilerWhiteBoxTest;
import compiler.testlibrary.intrinsics.Verifier;
public abstract class IntrinsicBase extends CompilerWhiteBoxTest { public abstract class IntrinsicBase extends CompilerWhiteBoxTest {
protected String javaVmName; protected String javaVmName;

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build MultiplyExactIntTest * @build MultiplyExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics MultiplyExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics MultiplyExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class MultiplyExactIntTest { public class MultiplyExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build MultiplyExactLongTest * @build MultiplyExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics MultiplyExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics MultiplyExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class MultiplyExactLongTest { public class MultiplyExactLongTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build NegateExactIntTest * @build NegateExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics NegateExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics NegateExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class NegateExactIntTest { public class NegateExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build NegateExactLongTest * @build NegateExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics NegateExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics NegateExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class NegateExactLongTest { public class NegateExactLongTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build SubtractExactIntTest * @build SubtractExactIntTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,8 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics SubtractExactIntTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics SubtractExactIntTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class SubtractExactIntTest { public class SubtractExactIntTest {

View file

@ -23,11 +23,11 @@
/* /*
* @test * @test
* @library /testlibrary /test/lib /compiler/whitebox / /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build SubtractExactLongTest * @build SubtractExactLongTest
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
@ -37,7 +37,7 @@
* -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation * -XX:+IgnoreUnrecognizedVMOptions -XX:+WhiteBoxAPI -XX:+LogCompilation
* -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod * -XX:CompileCommand=compileonly,MathIntrinsic*::execMathMethod
* -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics SubtractExactLongTest * -XX:LogFile=hs.log -XX:+UseMathExactIntrinsics SubtractExactLongTest
* @run main intrinsics.Verifier hs_neg.log hs.log * @run driver compiler.testlibrary.intrinsics.Verifier hs_neg.log hs.log
*/ */
public class SubtractExactLongTest { public class SubtractExactLongTest {

View file

@ -23,7 +23,7 @@
import jdk.test.lib.Platform; import jdk.test.lib.Platform;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import sha.predicate.IntrinsicPredicates; import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
import java.util.function.BooleanSupplier; import java.util.function.BooleanSupplier;

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA1Intrinsics option processing on supported CPU, * @summary Verify UseSHA1Intrinsics option processing on supported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA1IntrinsicsOptionOnSupportedCPU * @build TestUseSHA1IntrinsicsOptionOnSupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseSHA1IntrinsicsOptionOnSupportedCPU * -XX:+WhiteBoxAPI TestUseSHA1IntrinsicsOptionOnSupportedCPU

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA1Intrinsics option processing on unsupported CPU, * @summary Verify UseSHA1Intrinsics option processing on unsupported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA1IntrinsicsOptionOnUnsupportedCPU * @build TestUseSHA1IntrinsicsOptionOnUnsupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA256Intrinsics option processing on supported CPU, * @summary Verify UseSHA256Intrinsics option processing on supported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA256IntrinsicsOptionOnSupportedCPU * @build TestUseSHA256IntrinsicsOptionOnSupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA256Intrinsics option processing on unsupported CPU, * @summary Verify UseSHA256Intrinsics option processing on unsupported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA256IntrinsicsOptionOnUnsupportedCPU * @build TestUseSHA256IntrinsicsOptionOnUnsupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -25,11 +25,11 @@
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA512Intrinsics option processing on supported CPU. * @summary Verify UseSHA512Intrinsics option processing on supported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA512IntrinsicsOptionOnSupportedCPU * @build TestUseSHA512IntrinsicsOptionOnSupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA512Intrinsics option processing on unsupported CPU, * @summary Verify UseSHA512Intrinsics option processing on unsupported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHA512IntrinsicsOptionOnUnsupportedCPU * @build TestUseSHA512IntrinsicsOptionOnUnsupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -24,12 +24,12 @@
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA option processing on supported CPU, * @summary Verify UseSHA option processing on supported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHAOptionOnSupportedCPU * @build TestUseSHAOptionOnSupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseSHAOptionOnSupportedCPU * -XX:+WhiteBoxAPI TestUseSHAOptionOnSupportedCPU

View file

@ -25,11 +25,11 @@
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify UseSHA option processing on unsupported CPU. * @summary Verify UseSHA option processing on unsupported CPU.
* @library /testlibrary /test/lib /compiler/testlibrary testcases * @library /testlibrary /test/lib testcases /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseSHAOptionOnUnsupportedCPU * @build TestUseSHAOptionOnUnsupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseSHAOptionOnUnsupportedCPU * -XX:+WhiteBoxAPI TestUseSHAOptionOnUnsupportedCPU

View file

@ -27,7 +27,7 @@ import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.OrPredicate; import jdk.test.lib.cli.predicate.OrPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import sha.predicate.IntrinsicPredicates; import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
/** /**
* Test case specific to UseSHA*Intrinsics options targeted to SPARC and AArch64 * Test case specific to UseSHA*Intrinsics options targeted to SPARC and AArch64

View file

@ -27,7 +27,7 @@ import jdk.test.lib.Platform;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.OrPredicate; import jdk.test.lib.cli.predicate.OrPredicate;
import sha.predicate.IntrinsicPredicates; import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
/** /**
* UseSHA specific test case targeted to SPARC and AArch64 CPUs which * UseSHA specific test case targeted to SPARC and AArch64 CPUs which

View file

@ -28,7 +28,7 @@ import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.OrPredicate; import jdk.test.lib.cli.predicate.OrPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import sha.predicate.IntrinsicPredicates; import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
/** /**
* UseSHA specific test case targeted to SPARC and AArch64 CPUs which don't * UseSHA specific test case targeted to SPARC and AArch64 CPUs which don't

View file

@ -21,7 +21,6 @@
* questions. * questions.
*/ */
import intrinsics.Verifier;
import sun.hotspot.WhiteBox; import sun.hotspot.WhiteBox;
import java.io.FileOutputStream; import java.io.FileOutputStream;
@ -30,6 +29,8 @@ import java.util.Objects;
import java.util.Properties; import java.util.Properties;
import java.util.function.BooleanSupplier; import java.util.function.BooleanSupplier;
import compiler.testlibrary.intrinsics.Verifier;
/** /**
* Base class for sanity tests on SHA intrinsics support. * Base class for sanity tests on SHA intrinsics support.
*/ */

View file

@ -25,11 +25,11 @@
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-1 intrinsic is actually used. * @summary Verify that SHA-1 intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA1Intrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA1Intrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -48,9 +48,10 @@
* -XX:-UseSHA1Intrinsics * -XX:-UseSHA1Intrinsics
* -Dalgorithm=SHA-1 TestSHA1Intrinsics * -Dalgorithm=SHA-1 TestSHA1Intrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive.log negative.log * compiler.testlibrary.intrinsics.Verifier positive.log negative.log
*/ */
import sha.predicate.IntrinsicPredicates;
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA1Intrinsics { public class TestSHA1Intrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {

View file

@ -21,17 +21,15 @@
* questions. * questions.
*/ */
import sha.predicate.IntrinsicPredicates;
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-1 multi block intrinsic is actually used. * @summary Verify that SHA-1 multi block intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA1MultiBlockIntrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA1MultiBlockIntrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -58,9 +56,12 @@ import sha.predicate.IntrinsicPredicates;
* -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA * -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA
* -Dalgorithm=SHA-1 TestSHA1MultiBlockIntrinsics * -Dalgorithm=SHA-1 TestSHA1MultiBlockIntrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive.log positive_def.log * compiler.testlibrary.intrinsics.Verifier positive.log positive_def.log
* negative.log * negative.log
*/ */
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA1MultiBlockIntrinsics { public class TestSHA1MultiBlockIntrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
new SHASanityTestBase(IntrinsicPredicates.SHA1_INTRINSICS_AVAILABLE, new SHASanityTestBase(IntrinsicPredicates.SHA1_INTRINSICS_AVAILABLE,

View file

@ -21,17 +21,15 @@
* questions. * questions.
*/ */
import sha.predicate.IntrinsicPredicates;
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-256 intrinsic is actually used. * @summary Verify that SHA-256 intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA256Intrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA256Intrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -66,9 +64,12 @@ import sha.predicate.IntrinsicPredicates;
* -XX:-UseSHA256Intrinsics * -XX:-UseSHA256Intrinsics
* -Dalgorithm=SHA-256 TestSHA256Intrinsics * -Dalgorithm=SHA-256 TestSHA256Intrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive_224.log positive_256.log * compiler.testlibrary.intrinsics.Verifier positive_224.log positive_256.log
* negative_224.log negative_256.log * negative_224.log negative_256.log
*/ */
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA256Intrinsics { public class TestSHA256Intrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
new SHASanityTestBase(IntrinsicPredicates.SHA256_INTRINSICS_AVAILABLE, new SHASanityTestBase(IntrinsicPredicates.SHA256_INTRINSICS_AVAILABLE,

View file

@ -21,17 +21,15 @@
* questions. * questions.
*/ */
import sha.predicate.IntrinsicPredicates;
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-256 multi block intrinsic is actually used. * @summary Verify that SHA-256 multi block intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA256MultiBlockIntrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA256MultiBlockIntrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -82,10 +80,13 @@ import sha.predicate.IntrinsicPredicates;
* -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA * -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA
* -Dalgorithm=SHA-256 TestSHA256MultiBlockIntrinsics * -Dalgorithm=SHA-256 TestSHA256MultiBlockIntrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive_224.log positive_256.log * compiler.testlibrary.intrinsics.Verifier positive_224.log positive_256.log
* positive_224_def.log positive_256_def.log negative_224.log * positive_224_def.log positive_256_def.log negative_224.log
* negative_256.log * negative_256.log
*/ */
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA256MultiBlockIntrinsics { public class TestSHA256MultiBlockIntrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
new SHASanityTestBase(IntrinsicPredicates.SHA256_INTRINSICS_AVAILABLE, new SHASanityTestBase(IntrinsicPredicates.SHA256_INTRINSICS_AVAILABLE,

View file

@ -21,17 +21,15 @@
* questions. * questions.
*/ */
import sha.predicate.IntrinsicPredicates;
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-512 intrinsic is actually used. * @summary Verify that SHA-512 intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA512Intrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA512Intrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -66,9 +64,12 @@ import sha.predicate.IntrinsicPredicates;
* -XX:-UseSHA512Intrinsics * -XX:-UseSHA512Intrinsics
* -Dalgorithm=SHA-512 TestSHA512Intrinsics * -Dalgorithm=SHA-512 TestSHA512Intrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive_384.log positive_512.log * compiler.testlibrary.intrinsics.Verifier positive_384.log positive_512.log
* negative_384.log negative_512.log * negative_384.log negative_512.log
*/ */
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA512Intrinsics { public class TestSHA512Intrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
new SHASanityTestBase(IntrinsicPredicates.SHA512_INTRINSICS_AVAILABLE, new SHASanityTestBase(IntrinsicPredicates.SHA512_INTRINSICS_AVAILABLE,

View file

@ -21,17 +21,15 @@
* questions. * questions.
*/ */
import sha.predicate.IntrinsicPredicates;
/** /**
* @test * @test
* @bug 8035968 * @bug 8035968
* @summary Verify that SHA-512 multi block intrinsic is actually used. * @summary Verify that SHA-512 multi block intrinsic is actually used.
* @library /testlibrary /test/lib /compiler/testlibrary ../ * @library /testlibrary /test/lib / ../
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestSHA intrinsics.Verifier TestSHA512MultiBlockIntrinsics * @build TestSHA compiler.testlibrary.intrinsics.Verifier TestSHA512MultiBlockIntrinsics
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500 * -XX:+WhiteBoxAPI -Xbatch -XX:CompileThreshold=500
@ -82,10 +80,13 @@ import sha.predicate.IntrinsicPredicates;
* -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA * -XX:CompileOnly=sun/security/provider/SHA -XX:-UseSHA
* -Dalgorithm=SHA-512 TestSHA512MultiBlockIntrinsics * -Dalgorithm=SHA-512 TestSHA512MultiBlockIntrinsics
* @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE * @run main/othervm -DverificationStrategy=VERIFY_INTRINSIC_USAGE
* intrinsics.Verifier positive_384.log positive_512.log * compiler.testlibrary.intrinsics.Verifier positive_384.log positive_512.log
* positive_384_def.log positive_512_def.log negative_384.log * positive_384_def.log positive_512_def.log negative_384.log
* negative_512.log * negative_512.log
*/ */
import compiler.testlibrary.sha.predicate.IntrinsicPredicates;
public class TestSHA512MultiBlockIntrinsics { public class TestSHA512MultiBlockIntrinsics {
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
new SHASanityTestBase(IntrinsicPredicates.SHA512_INTRINSICS_AVAILABLE, new SHASanityTestBase(IntrinsicPredicates.SHA512_INTRINSICS_AVAILABLE,

View file

@ -25,7 +25,7 @@
* @test * @test
* @bug 8067247 * @bug 8067247
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /test/lib /compiler/whitebox / * @library /test/lib /
* @run main/bootclasspath/othervm -Xcomp -Xbatch * @run main/bootclasspath/othervm -Xcomp -Xbatch
* -XX:CompileCommand=compileonly,InvokerGC::test * -XX:CompileCommand=compileonly,InvokerGC::test
* -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI

View file

@ -26,10 +26,10 @@
* @bug 8073480 * @bug 8073480
* @summary explicit range checks should be recognized by C2 * @summary explicit range checks should be recognized by C2
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* @library /testlibrary /test/lib /compiler/whitebox / * @library /testlibrary /test/lib /
* @build TestExplicitRangeChecks * @build TestExplicitRangeChecks
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ClassFileInstaller jdk.test.lib.Platform * jdk.test.lib.Platform
* @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=compileonly,TestExplicitRangeChecks.test* TestExplicitRangeChecks * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:CompileCommand=compileonly,TestExplicitRangeChecks.test* TestExplicitRangeChecks
* *

View file

@ -25,12 +25,12 @@
* @test * @test
* @bug 8066103 * @bug 8066103
* @summary C2's range check smearing allows out of bound array accesses * @summary C2's range check smearing allows out of bound array accesses
* @library /testlibrary /test/lib /compiler/whitebox / * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRangeCheckSmearing * @build TestRangeCheckSmearing
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* @run main ClassFileInstaller jdk.test.lib.Platform * jdk.test.lib.Platform
* @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI * @run main/othervm -ea -Xmixed -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
* -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestRangeCheckSmearing * -XX:-BackgroundCompilation -XX:-UseOnStackReplacement TestRangeCheckSmearing
* *

View file

@ -28,8 +28,8 @@ import java.util.LinkedList;
import jdk.test.lib.ExitCode; import jdk.test.lib.ExitCode;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* Base for all RTM-related CLI tests on options whose processing depends * Base for all RTM-related CLI tests on options whose processing depends

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify PrintPreciseRTMLockingStatistics on CPUs with * @summary Verify PrintPreciseRTMLockingStatistics on CPUs with
* rtm support and on VM with rtm locking support, * rtm support and on VM with rtm locking support,
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig * @build TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI
@ -40,8 +40,8 @@
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig public class TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig
extends TestPrintPreciseRTMLockingStatisticsBase { extends TestPrintPreciseRTMLockingStatisticsBase {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify PrintPreciseRTMLockingStatistics on CPUs without * @summary Verify PrintPreciseRTMLockingStatistics on CPUs without
* rtm support and/or unsupported VM. * rtm support and/or unsupported VM.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig * @build TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI
@ -40,8 +40,8 @@
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig public class TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig
extends TestPrintPreciseRTMLockingStatisticsBase { extends TestPrintPreciseRTMLockingStatisticsBase {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify RTMAbortRatio option processing on CPU with rtm * @summary Verify RTMAbortRatio option processing on CPU with rtm
* support and on VM with rtm locking support. * support and on VM with rtm locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMAbortRatioOptionOnSupportedConfig * @build TestRTMAbortRatioOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMAbortRatioOptionOnSupportedConfig * -XX:+WhiteBoxAPI TestRTMAbortRatioOptionOnSupportedConfig

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify RTMAbortRatio option processing on CPU without rtm * @summary Verify RTMAbortRatio option processing on CPU without rtm
* support or on VM that does not support rtm locking. * support or on VM that does not support rtm locking.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMAbortRatioOptionOnUnsupportedConfig * @build TestRTMAbortRatioOptionOnUnsupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMAbortRatioOptionOnUnsupportedConfig * -XX:+WhiteBoxAPI TestRTMAbortRatioOptionOnUnsupportedConfig
@ -39,8 +39,8 @@
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestRTMAbortRatioOptionOnUnsupportedConfig public class TestRTMAbortRatioOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest { extends RTMGenericCommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify RTMTotalCountIncrRate option processing on CPU with * @summary Verify RTMTotalCountIncrRate option processing on CPU with
* rtm support and on VM with rtm locking support. * rtm support and on VM with rtm locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMTotalCountIncrRateOptionOnSupportedConfig * @build TestRTMTotalCountIncrRateOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -24,19 +24,19 @@
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* @test * @test
* @bug 8031320 * @bug 8031320
* @summary Verify RTMTotalCountIncrRate option processing on CPU without * @summary Verify RTMTotalCountIncrRate option processing on CPU without
* rtm support and/or on VM without rtm locking support. * rtm support and/or on VM without rtm locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMTotalCountIncrRateOptionOnUnsupportedConfig * @build TestRTMTotalCountIncrRateOptionOnUnsupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMDeopt option processing on CPUs with rtm support * @summary Verify UseRTMDeopt option processing on CPUs with rtm support
* when rtm locking is supported by VM. * when rtm locking is supported by VM.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMDeoptOptionOnSupportedConfig * @build TestUseRTMDeoptOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMDeoptOptionOnSupportedConfig * -XX:+WhiteBoxAPI TestUseRTMDeoptOptionOnSupportedConfig
@ -40,8 +40,8 @@
import jdk.test.lib.ExitCode; import jdk.test.lib.ExitCode;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMDeoptOptionOnSupportedConfig public class TestUseRTMDeoptOptionOnSupportedConfig
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMDeopt option processing on CPUs without rtm support * @summary Verify UseRTMDeopt option processing on CPUs without rtm support
* or on VMs without rtm locking support. * or on VMs without rtm locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMDeoptOptionOnUnsupportedConfig * @build TestUseRTMDeoptOptionOnUnsupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMDeoptOptionOnUnsupportedConfig * -XX:+WhiteBoxAPI TestUseRTMDeoptOptionOnUnsupportedConfig
@ -41,8 +41,8 @@ import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMDeoptOptionOnUnsupportedConfig public class TestUseRTMDeoptOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest { extends RTMGenericCommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMForStackLocks option processing on CPU with * @summary Verify UseRTMForStackLocks option processing on CPU with
* rtm support when VM supports rtm locking. * rtm support when VM supports rtm locking.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMForStackLocksOptionOnSupportedConfig * @build TestUseRTMForStackLocksOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI
@ -41,8 +41,8 @@
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMForStackLocksOptionOnSupportedConfig public class TestUseRTMForStackLocksOptionOnSupportedConfig
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMForStackLocks option processing on CPUs without * @summary Verify UseRTMForStackLocks option processing on CPUs without
* rtm support and/or on VMs without rtm locking support. * rtm support and/or on VMs without rtm locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMForStackLocksOptionOnUnsupportedConfig * @build TestUseRTMForStackLocksOptionOnUnsupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI * -XX:+WhiteBoxAPI
@ -42,8 +42,8 @@ import jdk.test.lib.ExitCode;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMForStackLocksOptionOnUnsupportedConfig public class TestUseRTMForStackLocksOptionOnUnsupportedConfig
extends RTMGenericCommandLineOptionTest { extends RTMGenericCommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMLocking option processing on CPU with rtm support and * @summary Verify UseRTMLocking option processing on CPU with rtm support and
* on VM with rtm-locking support. * on VM with rtm-locking support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMLockingOptionOnSupportedConfig * @build TestUseRTMLockingOptionOnSupportedConfig
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnSupportedConfig * -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnSupportedConfig
@ -40,8 +40,8 @@
import jdk.test.lib.ExitCode; import jdk.test.lib.ExitCode;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMLockingOptionOnSupportedConfig public class TestUseRTMLockingOptionOnSupportedConfig
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMLocking option processing on CPU without * @summary Verify UseRTMLocking option processing on CPU without
* rtm support. * rtm support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMLockingOptionOnUnsupportedCPU * @build TestUseRTMLockingOptionOnUnsupportedCPU
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnUnsupportedCPU * -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnUnsupportedCPU
@ -41,8 +41,8 @@ import jdk.test.lib.*;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMLockingOptionOnUnsupportedCPU public class TestUseRTMLockingOptionOnUnsupportedCPU
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify UseRTMLocking option processing on CPU with rtm support * @summary Verify UseRTMLocking option processing on CPU with rtm support
* in case when VM should not support this option. * in case when VM should not support this option.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMLockingOptionOnUnsupportedVM * @build TestUseRTMLockingOptionOnUnsupportedVM
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnUnsupportedVM * -XX:+WhiteBoxAPI TestUseRTMLockingOptionOnUnsupportedVM
@ -41,8 +41,8 @@ import jdk.test.lib.ExitCode;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import jdk.test.lib.cli.predicate.NotPredicate; import jdk.test.lib.cli.predicate.NotPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMLockingOptionOnUnsupportedVM public class TestUseRTMLockingOptionOnUnsupportedVM
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify processing of UseRTMLocking and UseBiasedLocking * @summary Verify processing of UseRTMLocking and UseBiasedLocking
* options combination on CPU and VM with rtm support. * options combination on CPU and VM with rtm support.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestUseRTMLockingOptionWithBiasedLocking * @build TestUseRTMLockingOptionWithBiasedLocking
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestUseRTMLockingOptionWithBiasedLocking * -XX:+WhiteBoxAPI TestUseRTMLockingOptionWithBiasedLocking
@ -40,8 +40,8 @@
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.*; import jdk.test.lib.cli.*;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
public class TestUseRTMLockingOptionWithBiasedLocking public class TestUseRTMLockingOptionWithBiasedLocking
extends CommandLineOptionTest { extends CommandLineOptionTest {

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify that RTMAbortRatio affects amount of aborts before * @summary Verify that RTMAbortRatio affects amount of aborts before
* deoptimization. * deoptimization.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMAbortRatio * @build TestRTMAbortRatio
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMAbortRatio * -XX:+WhiteBoxAPI TestRTMAbortRatio
@ -41,9 +41,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe; import jdk.internal.misc.Unsafe;
/** /**

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify that RTMAbortThreshold option affects * @summary Verify that RTMAbortThreshold option affects
* amount of aborts after which abort ratio is calculated. * amount of aborts after which abort ratio is calculated.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMAbortThreshold * @build TestRTMAbortThreshold
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMAbortThreshold * -XX:+WhiteBoxAPI TestRTMAbortThreshold
@ -41,9 +41,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* Test verifies that on RTMAbortThreshold option actually affects how soon * Test verifies that on RTMAbortThreshold option actually affects how soon

View file

@ -29,11 +29,11 @@
* caused by reason other then rtm_state_change will reset * caused by reason other then rtm_state_change will reset
* method's RTM state. And if we don't use RTMDeopt, then * method's RTM state. And if we don't use RTMDeopt, then
* RTM state remain the same after such deoptimization. * RTM state remain the same after such deoptimization.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMAfterNonRTMDeopt * @build TestRTMAfterNonRTMDeopt
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMAfterNonRTMDeopt * -XX:+WhiteBoxAPI TestRTMAfterNonRTMDeopt
@ -43,9 +43,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe; import jdk.internal.misc.Unsafe;
/** /**

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify that on high abort ratio method will be recompiled * @summary Verify that on high abort ratio method will be recompiled
* without rtm locking. * without rtm locking.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMDeoptOnHighAbortRatio * @build TestRTMDeoptOnHighAbortRatio
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMDeoptOnHighAbortRatio * -XX:+WhiteBoxAPI TestRTMDeoptOnHighAbortRatio
@ -41,9 +41,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* Test verifies that on high abort ratio method wil be deoptimized with * Test verifies that on high abort ratio method wil be deoptimized with

View file

@ -26,11 +26,11 @@
* @test * @test
* @bug 8031320 * @bug 8031320
* @summary Verify that on low abort ratio method will be recompiled. * @summary Verify that on low abort ratio method will be recompiled.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMDeoptOnLowAbortRatio * @build TestRTMDeoptOnLowAbortRatio
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMDeoptOnLowAbortRatio * -XX:+WhiteBoxAPI TestRTMDeoptOnLowAbortRatio
@ -40,9 +40,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe; import jdk.internal.misc.Unsafe;
/** /**

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify that RTMLockingCalculationDelay affect when * @summary Verify that RTMLockingCalculationDelay affect when
* abort ratio calculation is started. * abort ratio calculation is started.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMLockingCalculationDelay * @build TestRTMLockingCalculationDelay
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMLockingCalculationDelay * -XX:+WhiteBoxAPI TestRTMLockingCalculationDelay
@ -40,9 +40,9 @@
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* Test verifies that abort ratio calculation could be delayed using * Test verifies that abort ratio calculation could be delayed using

View file

@ -27,11 +27,11 @@
* @bug 8031320 * @bug 8031320
* @summary Verify that RTMLockingThreshold affects rtm state transition * @summary Verify that RTMLockingThreshold affects rtm state transition
* ProfileRTM => UseRTM. * ProfileRTM => UseRTM.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMLockingThreshold * @build TestRTMLockingThreshold
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMLockingThreshold * -XX:+WhiteBoxAPI TestRTMLockingThreshold
@ -41,9 +41,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe; import jdk.internal.misc.Unsafe;
/** /**

View file

@ -26,11 +26,11 @@
* @test * @test
* @bug 8031320 * @bug 8031320
* @summary Verify that RTMRetryCount affects actual amount of retries. * @summary Verify that RTMRetryCount affects actual amount of retries.
* @library /testlibrary /test/lib /compiler/testlibrary * @library /testlibrary /test/lib /
* @modules java.base/jdk.internal.misc * @modules java.base/jdk.internal.misc
* java.management * java.management
* @build TestRTMRetryCount * @build TestRTMRetryCount
* @run main ClassFileInstaller sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox
* sun.hotspot.WhiteBox$WhiteBoxPermission * sun.hotspot.WhiteBox$WhiteBoxPermission
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
* -XX:+WhiteBoxAPI TestRTMRetryCount * -XX:+WhiteBoxAPI TestRTMRetryCount
@ -41,9 +41,9 @@ import java.util.List;
import jdk.test.lib.*; import jdk.test.lib.*;
import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate; import jdk.test.lib.cli.predicate.AndPredicate;
import rtm.*; import compiler.testlibrary.rtm.*;
import rtm.predicate.SupportedCPU; import compiler.testlibrary.rtm.predicate.SupportedCPU;
import rtm.predicate.SupportedVM; import compiler.testlibrary.rtm.predicate.SupportedVM;
/** /**
* Test verifies that RTMRetryCount option actually affects amount of * Test verifies that RTMRetryCount option actually affects amount of

Some files were not shown because too many files have changed in this diff Show more