RFR: 8221723: Avoid storing zero to String.hash
shade at redhat.com
Mon Apr 1 20:13:04 UTC 2019
On 4/1/19 10:08 PM, Brian Goetz wrote:
> There's another reason to avoid these writes, besides CDS optimizations: do-nothing writes generate
> useless card mark activity.
Not for primitive stores, like hash code. But you can construct a funny workload where storing zero
hash code would false-share with something important. I think CDS is the major use case here, and it
is a legit one.
More information about the core-libs-dev