Searched refs:oldCapacity (Results 1 – 12 of 12) sorted by relevance
81 static int newCapacity(int oldCapacity) { in newCapacity() argument82 return oldCapacity + (oldCapacity >> 1); in newCapacity()86 int oldCapacity = capacity(list); in ensureCapacity() local91 (capacity(list) == oldCapacity) in ensureCapacity()
61 int oldCapacity = capacity(); in ensureCapacity() local65 if (minCapacity <= oldCapacity) in ensureCapacity()66 assertEquals(capacity(), oldCapacity); in ensureCapacity() local75 static int newCapacity(int oldCapacity) { in newCapacity() argument76 return 2 * oldCapacity; in newCapacity()
141 final int oldCapacity = elements.length; in grow() local144 int jump = (oldCapacity < 64) ? (oldCapacity + 2) : (oldCapacity >> 1); in grow()146 || (newCapacity = (oldCapacity + jump)) - MAX_ARRAY_SIZE > 0) in grow()154 int newSpace = newCapacity - oldCapacity; in grow()157 oldCapacity - head); in grow()171 final int oldCapacity = elements.length, minCapacity; in newCapacity() local172 if ((minCapacity = oldCapacity + needed) - MAX_ARRAY_SIZE > 0) { in newCapacity()179 return (oldCapacity + jump - MAX_ARRAY_SIZE < 0) in newCapacity()180 ? oldCapacity + jump in newCapacity()
299 int oldCapacity = queue.length; in grow() local301 int newCapacity = ArraysSupport.newLength(oldCapacity, in grow()302 minCapacity - oldCapacity, /* minimum growth */ in grow()303 oldCapacity < 64 ? oldCapacity + 2 : oldCapacity >> 1 in grow()
218 int oldCapacity = elementData.length; in trimToSize() local219 if (elementCount < oldCapacity) { in trimToSize()257 int oldCapacity = elementData.length; in grow() local258 int newCapacity = ArraysSupport.newLength(oldCapacity, in grow()259 minCapacity - oldCapacity, /* minimum growth */ in grow()260 capacityIncrement > 0 ? capacityIncrement : oldCapacity in grow()
239 int oldCapacity = elementData.length; in grow() local240 if (oldCapacity > 0 || elementData != DEFAULTCAPACITY_EMPTY_ELEMENTDATA) { in grow()241 int newCapacity = ArraysSupport.newLength(oldCapacity, in grow()242 minCapacity - oldCapacity, /* minimum growth */ in grow()243 oldCapacity >> 1 /* preferred growth */); in grow()
409 int oldCapacity = table.length; in rehash() local413 int newCapacity = (oldCapacity << 1) + 1; in rehash()415 if (oldCapacity == MAX_ARRAY_SIZE) in rehash()426 for (int i = oldCapacity ; i-- > 0 ;) { in rehash()
492 int oldCapacity = oldTable.length; in resize() local493 if (oldCapacity == MAXIMUM_CAPACITY) { in resize()
114 int oldCapacity = buf.length; in grow() local115 int newCapacity = oldCapacity << 1; in grow()
98 int oldCapacity = sb.capacity(); in capacityCheck() local101 if (oldCapacity == newCapacity) in capacityCheck()
175 int oldCapacity = value.length >> coder; in ensureCapacityInternal() local176 if (minimumCapacity - oldCapacity > 0) { in ensureCapacityInternal()204 int oldCapacity = value.length >> coder; in newCapacity() local205 int newCapacity = (oldCapacity << 1) + 2; in newCapacity()
1013 int oldCapacity = queue.length; in grow() local1014 int newCapacity = oldCapacity + (oldCapacity >> 1); // grow 50% in grow()