RFR: 8196340: (coll) Examine overriding inherited methods in ArrayList and ArrayList.SubList
Claes Redestad
claes.redestad at oracle.com
Tue May 15 09:51:17 UTC 2018
On 2018-05-15 03:45, Ivan Gerasimov wrote:
> let's move the line
> 586 final int otherModCount = other.modCount;
> to the beginning of equalsArrayList(ArrayList<?> other), so it is
> initialized before other.size is read?
Sure, let's also pick up on Martin's suggestion to rewrite the control
flow and minimize bytecode:
http://cr.openjdk.java.net/~redestad/8196340/open.03/
/Claes
More information about the core-libs-dev
mailing list