hg: jdk8/tl/jdk: 8013395: StringBuffer.toString performance regression impacting embedded benchmarks

david.holmes at oracle.com david.holmes at oracle.com
Tue May 14 21:46:51 PDT 2013


Changeset: a3d79a4c2a24
Author:    dholmes
Date:      2013-05-15 00:36 -0400
URL:       http://hg.openjdk.java.net/jdk8/tl/jdk/rev/a3d79a4c2a24

8013395: StringBuffer.toString performance regression impacting embedded benchmarks
Summary: cache a copy of the char[] to use with toString() and clear it when ever the sb content is modified
Reviewed-by: alanb, plevart, mduigou, forax

! src/share/classes/java/lang/StringBuffer.java
+ test/java/lang/StringBuffer/ToStringCache.java



More information about the security-dev mailing list