private void shrinkArray() {
    	int newsize = longs.length/2;
    	if (newsize < MIN_SIZE) {
    		return;
    	}
		long [] newlongs = new long[newsize];
        System.arraycopy(longs,0,newlongs,0,size);
        longs = newlongs;
    }
Doubles the size of the array.
@param size The new capacity of the array.
Ghidra/Framework/Generic/src/main/java/ghidra/util/datastruct/LongArrayList.java