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

Resolve all string constants in shared classes at CDS dump time

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b33

      Description

      Currently when classes are archived by CDS, by default only a small, fixed set of strings are interned at dump time. In order to work better with AOT, it's desirable to intern and archive all the strings. This will allow AOT to produce smaller and faster code.

      The CDS archive size will increase approx 2~3%, but this should be more than compensated by savings in AOT. Also, the shared interned strings are effectively read-only (unless the program explicitly synchronizes on them), so their physical memory can be shared across processes.

        Attachments

          Activity

            People

            Assignee:
            jiangli Jiangli Zhou
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: