8010309 : PlatformLogger: isLoggable performance / waste due to HashMap<Integer, Level> leads to Integer allocations (boxing)

Laurent Bourgès bourges.laurent at gmail.com
Wed Mar 27 09:32:03 UTC 2013


Hi Mandy, Peter,

thanks for the review.

I wanted the patch to be small and only in PlatformLogger class without API
change to be easily backported to jdk7u.
Do you think this bug is JDK8 only ?

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8010309

I submitted another patch concerning missing
PlatformLogger.isLoggable(level) in the JDK (java.net, java.awt mainly) but
it is not widely used as I thought first.

see http://mail.openjdk.java.net/pipermail/awt-dev/2013-March/004459.html

Maybe in the future, other projects or JDK parts will use it if it is no
more a performance bottleneck.

Cheers,
Laurent



More information about the core-libs-dev mailing list