RFR(XS): 8229407: Avoid ConcurrentHashMap resizes during bootstrap
daniel.fuchs at oracle.com
Mon Aug 12 11:03:34 UTC 2019
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).
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/
More information about the core-libs-dev