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

Avoid storing zero to String.hash

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 13
    • 13
    • core-libs
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: