Hi Rémi,

> With latest jdk8, it's not true anymore.
> (and most of the time the iterator object is not created anymore at least 
> with jdk7+).

Could you please explain it a little bit more? When is that optimization 
applied,
e.g. what conditions are required for this optimization, since which version
of JDK/Hotspot it is supported, where it is implemented in JDK?

When I take look at a product I'm working on, I see a lot instances of 
ArrayList$Itr objects,
which are created by for-each loops (we use JDK 7u51).

Thanks in advance!

Best regards,
Andrej Golovnin

Reply via email to