test/hotspot/jtreg/compiler/rtm/locking/TestRTMSpinLoopCount.java
changeset 50369 09bd89dde2f9
parent 47216 71c04702a3d5
child 51148 959dbf7e96d0
equal deleted inserted replaced
50368:6df37b01ebf5 50369:09bd89dde2f9
    58     private static final int LOCKING_TIME = 1000;
    58     private static final int LOCKING_TIME = 1000;
    59     private static final int RTM_RETRY_COUNT = 1000;
    59     private static final int RTM_RETRY_COUNT = 1000;
    60     private static final boolean INFLATE_MONITOR = true;
    60     private static final boolean INFLATE_MONITOR = true;
    61     private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L;
    61     private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L;
    62     private static final int[] SPIN_LOOP_COUNTS
    62     private static final int[] SPIN_LOOP_COUNTS
    63             = new int[] { 0, 100, 1_000, 1_000_000, 10_000_000 };
    63             = new int[] { 0, 100, 1_000, 10_000, 100_000 };
    64 
    64 
    65     protected void runTestCases() throws Throwable {
    65     protected void runTestCases() throws Throwable {
    66         long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length];
    66         long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length];
    67         for (int i = 0; i < TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length; i++) {
    67         for (int i = 0; i < TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length; i++) {
    68             aborts[i] = getAbortsCountOnLockBusy(
    68             aborts[i] = getAbortsCountOnLockBusy(