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

Avoid storing zero to String.hash

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 13
    • core-libs
    • None
    • b15

      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.

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

              Created:
              Updated:
              Resolved: