< prev index next >

test/hotspot/jtreg/compiler/rtm/cli/TestUseRTMDeoptOptionOnSupportedConfig.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 UseRTMDeopt option processing on CPUs with rtm support
  28  *          when rtm locking is supported by VM.
  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.TestUseRTMDeoptOptionOnSupportedConfig
  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 TestUseRTMDeoptOptionOnSupportedConfig {
  42     private static final String DEFAULT_VALUE = "false";
  43 
  44     public void runTestCases() throws Throwable {
  45         String shouldPassMessage = " JVM should startup with option '"
  46                 + "-XX:+UseRTMDeopt' without any warnings";
  47         // verify that option could be turned on
  48         CommandLineOptionTest.verifySameJVMStartup(
  49                 null, null, shouldPassMessage, shouldPassMessage, ExitCode.OK,
  50                 "-XX:+UseRTMDeopt");
  51         shouldPassMessage = " JVM should startup with option '"
  52                 + "-XX:-UseRTMDeopt' without any warnings";




  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 UseRTMDeopt option processing on CPUs with rtm support
  28  *          when rtm locking is supported by VM.
  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.TestUseRTMDeoptOptionOnSupportedConfig
  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 TestUseRTMDeoptOptionOnSupportedConfig {
  43     private static final String DEFAULT_VALUE = "false";
  44 
  45     public void runTestCases() throws Throwable {
  46         String shouldPassMessage = " JVM should startup with option '"
  47                 + "-XX:+UseRTMDeopt' without any warnings";
  48         // verify that option could be turned on
  49         CommandLineOptionTest.verifySameJVMStartup(
  50                 null, null, shouldPassMessage, shouldPassMessage, ExitCode.OK,
  51                 "-XX:+UseRTMDeopt");
  52         shouldPassMessage = " JVM should startup with option '"
  53                 + "-XX:-UseRTMDeopt' without any warnings";


< prev index next >