< prev index next >

test/hotspot/jtreg/compiler/rtm/locking/TestRTMSpinLoopCount.java

Print this page
*** 61,15 ***
      private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L;
      private static int[] SPIN_LOOP_COUNTS;
  
      protected void runTestCases() throws Throwable {
  
!         if (Platform.isPPC()) {
-             SPIN_LOOP_COUNTS = new int[] { 0, 10, 100, 1_000, 10_000 };
-         } else {
-             SPIN_LOOP_COUNTS = new int[] { 0, 100, 1_000, 10_000, 100_000 };
-         }
  
          long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length];
  
          for (int i = 0; i < TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length; i++) {
              aborts[i] = getAbortsCountOnLockBusy(
--- 61,11 ---
      private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L;
      private static int[] SPIN_LOOP_COUNTS;
  
      protected void runTestCases() throws Throwable {
  
!         SPIN_LOOP_COUNTS = new int[] { 0, 100, 1_000, 10_000, 100_000 };
  
          long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length];
  
          for (int i = 0; i < TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length; i++) {
              aborts[i] = getAbortsCountOnLockBusy(
< prev index next >