@Override
	public void trimToSize() {
        doModify();

    	if (size < values.length) {
    		init(toArray(), size);
    	}
    }
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