< prev index next >

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

Print this page
rev 50225 : PPC64: Fix jtreg RTM tests after "8203305: Improve TM detection for enabling RTM on Linux / POWER9"


  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 package compiler.rtm.cli;
  25 
  26 import jdk.test.lib.process.ExitCode;
  27 import jdk.test.lib.Platform;
  28 import jdk.test.lib.cli.CommandLineOptionTest;
  29 
  30 import java.util.function.BooleanSupplier;
  31 
  32 /**
  33  * Base for all RTM-related CLI tests.
  34  */
  35 public abstract class RTMGenericCommandLineOptionTest {
  36 
  37     protected static final String RTM_INSTR_ERROR
  38             = "RTM instructions are not available on this CPU";


  39     protected static final String RTM_UNSUPPORTED_VM_ERROR
  40             = "RTM locking optimization is not supported in this VM";
  41     protected static final String RTM_FOR_STACK_LOCKS_WARNING
  42             = "UseRTMForStackLocks flag should be off when UseRTMLocking "
  43             + "flag is off";
  44     protected static final String RTM_COUNT_INCR_WARNING
  45             = "must be a power of 2, resetting it to 64";
  46     protected static final String RTM_BIASED_LOCKING_WARNING
  47             = "Biased locking is not supported with RTM locking; "
  48             + "ignoring UseBiasedLocking flag";
  49 
  50     protected final String optionName;
  51     protected final String errorMessage;
  52     protected final String experimentalOptionError;
  53     protected final boolean isExperimental;
  54     protected final boolean isBoolean;
  55     protected final String defaultValue;
  56     protected final String[] optionValues;
  57 
  58     /**




  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 package compiler.rtm.cli;
  25 
  26 import jdk.test.lib.process.ExitCode;
  27 import jdk.test.lib.Platform;
  28 import jdk.test.lib.cli.CommandLineOptionTest;
  29 
  30 import java.util.function.BooleanSupplier;
  31 
  32 /**
  33  * Base for all RTM-related CLI tests.
  34  */
  35 public abstract class RTMGenericCommandLineOptionTest {
  36 
  37     protected static final String RTM_INSTR_ERROR
  38             = "RTM instructions are not available on this CPU";
  39     protected static final String RTM_OS_ERROR
  40             = "RTM is not supported on this OS version";
  41     protected static final String RTM_UNSUPPORTED_VM_ERROR
  42             = "RTM locking optimization is not supported in this VM";
  43     protected static final String RTM_FOR_STACK_LOCKS_WARNING
  44             = "UseRTMForStackLocks flag should be off when UseRTMLocking "
  45             + "flag is off";
  46     protected static final String RTM_COUNT_INCR_WARNING
  47             = "must be a power of 2, resetting it to 64";
  48     protected static final String RTM_BIASED_LOCKING_WARNING
  49             = "Biased locking is not supported with RTM locking; "
  50             + "ignoring UseBiasedLocking flag";
  51 
  52     protected final String optionName;
  53     protected final String errorMessage;
  54     protected final String experimentalOptionError;
  55     protected final boolean isExperimental;
  56     protected final boolean isBoolean;
  57     protected final String defaultValue;
  58     protected final String[] optionValues;
  59 
  60     /**


< prev index next >