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.
- relates to
-
JDK-8221724 Enable archiving of Strings with hash 0
-
- Resolved
-