RFR: 7113878: LogManager - namedLoggers should be ConcurrentHashMap instead of Hashtable
Martin Buchholz
martinrb at google.com
Fri Mar 27 23:39:41 UTC 2015
Claes,
Right you are - I stand corrected!
On Fri, Mar 27, 2015 at 4:02 PM, Claes Redestad <claes.redestad at oracle.com>
wrote:
>
> 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