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

Improve String concat bootstrapping

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-libs

      Description

      - refactor makeConcat/makeConcatWithArguments methods to remove the generateRecipe argument
      - fold back-to-back constants into one when parsing recipe, which allows the prepender logic to be simplified
      - do input checking in the parse pass
      - get rid of the Recipe and RecipeElement classes by representing the parsed recipe as a list of Strings which are either null (argument slot) or not (constant)
      - eagerly rebind on setup of those method handles that we'll always transform (transforming will call rebind() anyway which will now be a no-op)
      - simplify filtering logic by picking up the erased type, so that we can do c == Object.class rather than !c.isPrimitive

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: