code: private static int expandTo(int length) {
          // add 25% + 100 - limit to Integer.Max
          int toAdd = 100 + (length >> 2);
          toAdd = Math.min(UBench.MAX_RESULTS - length, toAdd);
          return toAdd == 0 ? -1 : toAdd + length;
      }
docs: Compute the length of the results array with some space for growth
  
  @param length
  the current length
  @return the desired length