8148604: JEP 280, Switch to more optimal concatenation strategy
authorshade
Thu, 19 May 2016 16:59:31 +0300
changeset 38428 0079e7d659db
parent 38427 73d309f504f6
child 38429 0fd11baf20c3
8148604: JEP 280, Switch to more optimal concatenation strategy Reviewed-by: psandoz, redestad
jdk/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java
--- a/jdk/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java	Thu May 19 16:08:39 2016 +0300
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java	Thu May 19 16:59:31 2016 +0300
@@ -128,7 +128,7 @@
     /**
      * Default strategy to use for concatenation.
      */
-    private static final Strategy DEFAULT_STRATEGY = Strategy.BC_SB;
+    private static final Strategy DEFAULT_STRATEGY = Strategy.MH_INLINE_SIZED_EXACT;
 
     private enum Strategy {
         /**