Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8245969

Simplify String concat constant folding

XMLWordPrintable

      While JDK-8222852 greatly reduced possible MH tree shapes, it added some accidental complexity to prependers.

      We could simplify all the prependers (and some of the setup logic) by dealing with the final constant in the newArray combinator we fold in after we're done adding prependers. This trades a bit of added complexity in one place for a reduction in complexity in several other places, and offers a small bootstrap improvement overall.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: