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

Adjust link-time generated Species classes to match JDK-8148604 usage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • b120
    • generic
    • generic

      JDK-8148604 enables a more optimal strategy for indify string concat, which may require more species classes during early startup. GenerateJLIClassesPlugin currently has a hard-coded default that attempted to match the usage of ISC, but it slightly mismatch reality, leading to 3 classes being generated when running the HelloClasslist utility.

      The following adjustment enables better matching:

      diff -r 099857ef9d0c src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/GenerateJLIClassesPlugin.java
      --- a/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/GenerateJLIClassesPlugin.java Thu May 19 16:08:40 2016 +0200
      +++ b/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/GenerateJLIClassesPlugin.java Fri May 20 16:01:15 2016 +0200
      @@ -101,8 +101,8 @@
            */
           public static List<String> defaultSpecies() {
               return List.of("LL", "L3", "L4", "L5", "L6", "L7", "L7I",
      - "L7II", "L7IIL", "L8", "L9", "L10", "L11", "L11I", "L11II",
      - "L12", "L13", "LI", "D", "L3I", "LIL", "LLI", "LLIL",
      + "L7II", "L7IIL", "L8", "L9", "L10", "L10I", "L10II", "L10IIL",
      + "L11", "L12", "L13", "LI", "D", "L3I", "LIL", "LLI", "LLIL",
                       "LILL", "I", "LLILL");
           }

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

              Created:
              Updated:
              Resolved: