RFR: 8283346: Optimize observable ArrayList creation in FXCollections

Marius Hanl mhanl at openjdk.java.net
Sat Mar 19 10:05:33 UTC 2022


On Fri, 18 Mar 2022 21:28:33 GMT, yosbits <duke at openjdk.java.net> wrote:

> * I don't know what the modCount property is used for, but is it okay if the modified code has different values?

This is fine as the mod count is only there to detect concurrent modifications. 
I recommend to read the `modCount` javadoc, its is very well written.
And as @mstr2 also wrote, it is also an internal field (for the above mentioned purpose).

-------------

PR: https://git.openjdk.java.net/jfx/pull/758


More information about the openjfx-dev mailing list