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

Enable archiving of Strings with hash 0

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 13
    • hotspot
    • None
    • b15

      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.

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

              Created:
              Updated:
              Resolved: