code: private void grow(int minCapacity) {
  		int oldCapacity = segment.size();
  		int newCapacity = oldCapacity + (oldCapacity >> 1);
  		if (newCapacity - minCapacity < 0) {
  			newCapacity = minCapacity;
  		}
  		segment = MemorySegmentFactory.wrap(Arrays.copyOf(segment.getArray(), newCapacity));
  		afterGrow();
  	}
docs: Increases the capacity to ensure that it can hold at least the
  minimum capacity argument.