< prev index next >

test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMLockingOptionOnSupportedConfig.java

Print this page
rev 59595 : [mq]: 8246497.compiler.flagless


  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 8031320
  27  * @summary Verify UseRTMLocking option processing on CPU and OS with rtm support and
  28  *          on VM with rtm locking support.
  29  * @library /test/lib /
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  * @requires vm.rtm.cpu & vm.rtm.compiler

  33  * @run driver compiler.rtm.cli.TestUseRTMLockingOptionOnSupportedConfig
  34  */
  35 
  36 package compiler.rtm.cli;
  37 
  38 import jdk.test.lib.process.ExitCode;
  39 import jdk.test.lib.cli.CommandLineOptionTest;
  40 
  41 public class TestUseRTMLockingOptionOnSupportedConfig {
  42     private static final String DEFAULT_VALUE = "false";
  43 
  44     public void runTestCases() throws Throwable {
  45         String unrecongnizedOption
  46                 =  CommandLineOptionTest.getUnrecognizedOptionErrorMessage(
  47                 "UseRTMLocking");
  48         String shouldPassMessage = "VM option 'UseRTMLocking' is experimental"
  49                 + "%nJVM startup should pass with "
  50                 + "-XX:+UnlockExperimentalVMOptions flag";
  51         // verify that there are no warning or error in VM output
  52         CommandLineOptionTest.verifySameJVMStartup(null,




  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /**
  25  * @test
  26  * @bug 8031320
  27  * @summary Verify UseRTMLocking option processing on CPU and OS with rtm support and
  28  *          on VM with rtm locking support.
  29  * @library /test/lib /
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  * @requires vm.rtm.cpu & vm.rtm.compiler
  33  * @requires vm.flagless
  34  * @run driver compiler.rtm.cli.TestUseRTMLockingOptionOnSupportedConfig
  35  */
  36 
  37 package compiler.rtm.cli;
  38 
  39 import jdk.test.lib.process.ExitCode;
  40 import jdk.test.lib.cli.CommandLineOptionTest;
  41 
  42 public class TestUseRTMLockingOptionOnSupportedConfig {
  43     private static final String DEFAULT_VALUE = "false";
  44 
  45     public void runTestCases() throws Throwable {
  46         String unrecongnizedOption
  47                 =  CommandLineOptionTest.getUnrecognizedOptionErrorMessage(
  48                 "UseRTMLocking");
  49         String shouldPassMessage = "VM option 'UseRTMLocking' is experimental"
  50                 + "%nJVM startup should pass with "
  51                 + "-XX:+UnlockExperimentalVMOptions flag";
  52         // verify that there are no warning or error in VM output
  53         CommandLineOptionTest.verifySameJVMStartup(null,


< prev index next >