RFR(XS): 8229407: Avoid ConcurrentHashMap resizes during bootstrap
Daniel Fuchs
daniel.fuchs at oracle.com
Mon Aug 12 11:03:34 UTC 2019
Hi Claes,
I'd suggest adding a comment such as:
// sized to 32 to avoid resizing during bootstrap
best regards (and no need for a new review if you
decide to take in my suggestion).
-- daniel
On 12/08/2019 11:13, Claes Redestad wrote:
> Hi core-libs,
>
> analysis shows that a handful of small ConcurrentHashMaps used during
> bootstrap is subject to some amount of resizing. Initializing these to
> slightly larger values improves startup metrics measurably on default
> images without regressing performance on minimal images.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8229407
> Webrev: http://cr.openjdk.java.net/~redestad/8229407/webrev.00/
>
> Thanks!
>
> /Claes
More information about the core-libs-dev
mailing list