RFR: 7113878: LogManager - namedLoggers should be ConcurrentHashMap instead of Hashtable

Claes Redestad claes.redestad at oracle.com
Fri Mar 27 23:02:38 UTC 2015


On 2015-03-27 21:12, Martin Buchholz wrote:
> Random advice - the default concurrency level of ConcurrentHashMap is 16,
> and that is almost always more than needed, probably also including here.

I believe JSR-166e (JDK8 and onwards) mostly removed the concept of
concurrency level from ConcurrentHashMap (while it's still there in some
constructors to confuse things). I recall some tests showing that the
difference in footprint between CHM and regular HashMap/Hashtable is now
negligible even for empty, default-initialized instances.

/Claes



More information about the core-libs-dev mailing list