# HG changeset patch # User gromero # Date 1536953542 14400 # Node ID 763aa4d1d596375e6bc4f1bcac6235628103a248 # Parent 43323ced5e401d83807605cbc7241874227b900b 8209972: [GRAAL] Don't run RTM tests with Graal Reviewed-by: kvn, goetz diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/TEST.ROOT --- a/test/hotspot/jtreg/TEST.ROOT Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/TEST.ROOT Fri Sep 14 15:32:22 2018 -0400 @@ -56,7 +56,7 @@ vm.hasSAandCanAttach \ vm.hasJFR \ vm.rtm.cpu \ - vm.rtm.os \ + vm.rtm.compiler \ vm.aot \ vm.cds \ vm.cds.custom.loaders \ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnSupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify PrintPreciseRTMLockingStatistics on CPUs with + * @summary Verify PrintPreciseRTMLockingStatistics on CPUs and OSs with * rtm support and on VM with rtm locking support, * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify PrintPreciseRTMLockingStatistics on CPUs without + * @summary Verify PrintPreciseRTMLockingStatistics on CPUs or OSs without * rtm support and/or unsupported VM. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires !(vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os) + * @requires !vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @build compiler.rtm.cli.TestPrintPreciseRTMLockingStatisticsOptionOnUnsupportedConfig * @run driver ClassFileInstaller sun.hotspot.WhiteBox diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMAbortThresholdOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMAbortThresholdOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMAbortThresholdOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestRTMAbortThresholdOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingCalculationDelayOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingCalculationDelayOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingCalculationDelayOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestRTMLockingCalculationDelayOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingThresholdOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingThresholdOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMLockingThresholdOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestRTMLockingThresholdOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMRetryCountOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMRetryCountOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMRetryCountOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestRTMRetryCountOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMSpinLoopCountOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMSpinLoopCountOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMSpinLoopCountOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestRTMSpinLoopCountOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnSupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnSupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestRTMTotalCountIncrRateOptionOnSupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify RTMTotalCountIncrRate option processing on CPU with + * @summary Verify RTMTotalCountIncrRate option processing on CPU and OS with * rtm support and on VM with rtm locking support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnSupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnSupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnSupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnUnsupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnUnsupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnUnsupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify UseRTMDeopt option processing on CPUs without rtm support + * @summary Verify UseRTMDeopt option processing on CPUs or OSs without rtm support * or on VMs without rtm locking support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires !(vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os) + * @requires !vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnSupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify UseRTMForStackLocks option processing on CPU with + * @summary Verify UseRTMForStackLocks option processing on CPU and OS with * rtm support when VM supports rtm locking. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnUnsupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnUnsupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMForStackLocksOptionOnUnsupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify UseRTMForStackLocks option processing on CPUs without + * @summary Verify UseRTMForStackLocks option processing on CPUs or OSs without * rtm support and/or on VMs without rtm locking support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires !(vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os) + * @requires !vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnSupportedConfig.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnSupportedConfig.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnSupportedConfig.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify UseRTMLocking option processing on CPU with rtm support and - * on VM with rtm-locking support. + * @summary Verify UseRTMLocking option processing on CPU and OS with rtm support and + * on VM with rtm locking support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnUnsupportedCPU.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnUnsupportedCPU.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnUnsupportedCPU.java Fri Sep 14 15:32:22 2018 -0400 @@ -24,12 +24,12 @@ /** * @test * @bug 8031320 - * @summary Verify UseRTMLocking option processing on CPU without + * @summary Verify UseRTMLocking option processing on CPUs without * rtm support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires (!vm.rtm.cpu) & (vm.flavor == "server" & !vm.emulatedClient) + * @requires !vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionWithBiasedLocking.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionWithBiasedLocking.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionWithBiasedLocking.java Fri Sep 14 15:32:22 2018 -0400 @@ -25,11 +25,11 @@ * @test * @bug 8031320 * @summary Verify processing of UseRTMLocking and UseBiasedLocking - * options combination on CPU and VM with rtm support. + * options combination on CPU, OS, and VM with rtm support. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMXendForLockBusyOption.java --- a/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMXendForLockBusyOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMXendForLockBusyOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * + * @requires vm.rtm.compiler * @run main/othervm compiler.rtm.cli.TestUseRTMXendForLockBusyOption */ diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortRatio.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortRatio.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortRatio.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortThreshold.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortThreshold.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAbortThreshold.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMAfterNonRTMDeopt.java Fri Sep 14 15:32:22 2018 -0400 @@ -31,7 +31,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnHighAbortRatio.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnHighAbortRatio.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnHighAbortRatio.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingCalculationDelay.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingCalculationDelay.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingCalculationDelay.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingThreshold.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingThreshold.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMLockingThreshold.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMRetryCount.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMRetryCount.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMRetryCount.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMSpinLoopCount.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMSpinLoopCount.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMSpinLoopCount.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestRTMTotalCountIncrRate.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestRTMTotalCountIncrRate.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestRTMTotalCountIncrRate.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMAfterLockInflation.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMAfterLockInflation.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMAfterLockInflation.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMDeopt.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMDeopt.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMDeopt.java Fri Sep 14 15:32:22 2018 -0400 @@ -25,11 +25,11 @@ * @test * @bug 8031320 * @summary Verify that UseRTMDeopt affects uncommon trap installation in - * copmpiled methods with synchronized block. + * compiled methods with synchronized block. * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForInflatedLocks.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForInflatedLocks.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForInflatedLocks.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForStackLocks.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForStackLocks.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMForStackLocks.java Fri Sep 14 15:32:22 2018 -0400 @@ -28,7 +28,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMXendForLockBusy.java --- a/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMXendForLockBusy.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/locking/TestUseRTMXendForLockBusy.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/method_options/TestNoRTMLockElidingOption.java --- a/test/hotspot/jtreg/compiler/rtm/method_options/TestNoRTMLockElidingOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/method_options/TestNoRTMLockElidingOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -29,7 +29,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/method_options/TestUseRTMLockElidingOption.java --- a/test/hotspot/jtreg/compiler/rtm/method_options/TestUseRTMLockElidingOption.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/method_options/TestUseRTMLockElidingOption.java Fri Sep 14 15:32:22 2018 -0400 @@ -30,7 +30,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/hotspot/jtreg/compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java --- a/test/hotspot/jtreg/compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/hotspot/jtreg/compiler/rtm/print/TestPrintPreciseRTMLockingStatistics.java Fri Sep 14 15:32:22 2018 -0400 @@ -31,7 +31,7 @@ * @library /test/lib / * @modules java.base/jdk.internal.misc * java.management - * @requires vm.flavor == "server" & !vm.emulatedClient & vm.rtm.cpu & vm.rtm.os + * @requires vm.rtm.cpu & vm.rtm.compiler * @build sun.hotspot.WhiteBox * @run driver ClassFileInstaller sun.hotspot.WhiteBox * sun.hotspot.WhiteBox$WhiteBoxPermission diff -r 43323ced5e40 -r 763aa4d1d596 test/jtreg-ext/requires/VMProps.java --- a/test/jtreg-ext/requires/VMProps.java Fri Sep 14 08:48:36 2018 -0700 +++ b/test/jtreg-ext/requires/VMProps.java Fri Sep 14 15:32:22 2018 -0400 @@ -84,7 +84,7 @@ map.put("vm.hasJFR", vmHasJFR()); map.put("vm.cpu.features", cpuFeatures()); map.put("vm.rtm.cpu", vmRTMCPU()); - map.put("vm.rtm.os", vmRTMOS()); + map.put("vm.rtm.compiler", vmRTMCompiler()); map.put("vm.aot", vmAOT()); // vm.cds is true if the VM is compiled with cds support. map.put("vm.cds", vmCDS()); @@ -131,8 +131,6 @@ } } - - /** * @return VM type value extracted from the "java.vm.name" property. */ @@ -301,24 +299,16 @@ } /** - * @return true if VM runs RTM supported OS and false otherwise. + * @return true if compiler in use supports RTM and false otherwise. */ - protected String vmRTMOS() { - boolean isRTMOS = true; + protected String vmRTMCompiler() { + boolean isRTMCompiler = false; - if (Platform.isAix()) { - // Actually, this works since AIX 7.1.3.30, but os.version property - // is set to 7.1. - isRTMOS = (Platform.getOsVersionMajor() > 7) || - (Platform.getOsVersionMajor() == 7 && Platform.getOsVersionMinor() > 1); - - } else if (Platform.isLinux()) { - if (Platform.isPPC()) { - isRTMOS = (Platform.getOsVersionMajor() > 4) || - (Platform.getOsVersionMajor() == 4 && Platform.getOsVersionMinor() > 1); - } + if (Compiler.isC2Enabled() && + (Platform.isX86() || Platform.isX64() || Platform.isPPC())) { + isRTMCompiler = true; } - return "" + isRTMOS; + return "" + isRTMCompiler; } /**