Ah, of course! I should've known to verify(validatorList, never()).iterator()! Thanks for adding that and merging. As for the cause: we regularly perform bulk updates to our users' objects via some CSV imports, and lately, some of them have been causing our servers to throw OOMs. I've spent a lot of time in the last few days looking at heap dumps and allocation captures. Our top allocated object by a fair margin was byte[], and it was mostly stemming from the two files I modified. At first, I just...
Small memory optimization while using default/empty ValidatorAggregators