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

Daniel Fuchs daniel.fuchs at oracle.com
Thu Mar 26 14:24:07 UTC 2015


On 26/03/15 14:32, Daniel Fuchs wrote:
> The enumeration of keys returned from the map will be iterated
> outside of any synchronized block.
> ConcurrentHashMap makes this safe.

I'm happy to report that the test in the webrev [1] fails in
ConcurrentModificationException if HashMap is used instead
of ConcurrentHashMap :-)

best regards

-- daniel

[1]
http://cr.openjdk.java.net/~dfuchs/webrev_7113878/webrev.00



More information about the core-libs-dev mailing list