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

Enable archiving of Strings with hash 0

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b15

      Description

      Currently Strings with hash 0 are excluded from CDS heap archiving, since a call to String::hashCode() might store a value to it. This blocks adding archiving in places where storing "" is needed, since the archived empty string will not share identity with the "" literal.

      JDK-8221723 seek to make sure that we do not store a zero value unnecessarily to String.hash, meaning any String added to the archive (where we guarantee hash has been calculated) will not observe any stores at runtime, thus we should remove the special-casing of such strings.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: