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

Avoid storing zero to String.hash

    XMLWordPrintable

    Details

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

      Description

      When calculating the hash value of a String, we currently store the value if it's zero. This interacts negatively with archiving to closed archive regions, since we'll dirty a page that could otherwise be shared between processes. If we avoid storing calculated zero values to String.hash, we don't need to special case and exclude Strings whose hash == 0 in the archiving code.

        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: