equal
deleted
inserted
replaced
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( |