hg: jdk9/dev/jdk: 8153666: Optimize Formatter.formatMessage

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Mon Jun 13 07:20:54 UTC 2016


Changeset: 5b5637f91747
Author:    dfuchs
Date:      2016-06-13 08:20 +0100
URL:       http://hg.openjdk.java.net/jdk9/dev/jdk/rev/5b5637f91747

8153666: Optimize Formatter.formatMessage
Summary: This patch brings a small optimization that removes needless synchronization in Formatter.formatMessage. It also fixes the code that decides whether to call MessageFormat, and brings a small clarification to the API documentation on the conditions when that will happen.
Reviewed-by: rriggs, martin

! src/java.logging/share/classes/java/util/logging/Formatter.java
! src/java.logging/share/classes/java/util/logging/SimpleFormatter.java
! test/java/util/logging/SimpleFormatterFormat.java



More information about the jdk9-dev-changes mailing list