RFR: 8166842: String.hashCode() has a non-benign data race

Claes Redestad claes.redestad at oracle.com
Wed Sep 28 13:25:54 UTC 2016


tangentially, is there any reason the Compact Strings work chose
to revert to checking value.length > 0 rather than not writing to hash
if the calculated hash code is 0?



On 2016-09-28 14:47, Aleksey Shipilev wrote:
> On 09/28/2016 02:44 PM, Peter Levart wrote:
>> http://cr.openjdk.java.net/~plevart/jdk9-dev/8166842_String.hashCode/webrev.01/
> +1, thanks. This is partially my fault for not spotting it earlier
> during the Compact Strings work.
> -Aleksey

More information about the core-libs-dev mailing list