@Override
	protected <T> void doGetAll(T[] array, int index, int len) {
		int[] physIdx = physIndex(index, index+len);
		int pos = 0;
        for (int i=0; i<physIdx.length; i+=2) {
        	int num = physIdx[i+1] - physIdx[i];
        	System.arraycopy(values, physIdx[i], array, pos, num);
        	pos += num;
        }
        assert(pos == len);
	}
Trims the capacity of this GapList instance to be the list's current size.
An application can use this operation to minimize the storage of an instance.
jphp-runtime/src/php/runtime/memory/support/GapList.java