Searched refs:oldCap (Results 1 - 1 of 1) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
H A DPriorityBlockingQueue.java257 * @param oldCap the length of the array
259 private void tryGrow(Object[] array, int oldCap) { argument
265 int newCap = oldCap + ((oldCap < 64) ?
266 (oldCap + 2) : // grow faster if small
267 (oldCap >> 1));
269 int minCap = oldCap + 1;
274 if (newCap > oldCap && queue == array)
285 System.arraycopy(array, 0, newArray, 0, oldCap);

Completed in 60 milliseconds