Searched refs:oldCapacity (Results 1 – 7 of 7) sorted by relevance
112 int oldCapacity = buf.length; in grow() local113 int newCapacity = oldCapacity << 1; in grow()
292 int oldCapacity = queue.length; in grow() local294 int newCapacity = oldCapacity + ((oldCapacity < 64) ? in grow()295 (oldCapacity + 2) : in grow()296 (oldCapacity >> 1)); in grow()
205 int oldCapacity = elementData.length; in trimToSize() local206 if (elementCount < oldCapacity) { in trimToSize()259 int oldCapacity = elementData.length; in grow() local260 int newCapacity = oldCapacity + ((capacityIncrement > 0) ? in grow()261 capacityIncrement : oldCapacity); in grow()
392 int oldCapacity = table.length; in rehash() local396 int newCapacity = (oldCapacity << 1) + 1; in rehash()398 if (oldCapacity == MAX_ARRAY_SIZE) in rehash()409 for (int i = oldCapacity ; i-- > 0 ;) { in rehash()
268 int oldCapacity = elementData.length; in grow() local269 int newCapacity = oldCapacity + (oldCapacity >> 1); in grow()
486 int oldCapacity = oldTable.length; in resize() local487 if (oldCapacity == MAXIMUM_CAPACITY) { in resize()
957 int oldCapacity = queue.length; in grow() local958 int newCapacity = oldCapacity + (oldCapacity >> 1); // grow 50% in grow()