RFR: 8166842: String.hashCode() has a non-benign data race
Alan Bateman
Alan.Bateman at oracle.com
Wed Sep 28 13:05:16 UTC 2016
On 28/09/2016 13:44, Peter Levart wrote:
> Hi,
>
> According to discussion here:
>
> http://cs.oswego.edu/pipermail/concurrency-interest/2016-September/015414.html
>
>
> it seems compact strings introduced (at least theoretical) non-benign
> data race into String.hasCode() method.
>
> Here is a proposed patch:
>
> http://cr.openjdk.java.net/~plevart/jdk9-dev/8166842_String.hashCode/webrev.01/
>
>
> For the bug:
>
> https://bugs.openjdk.java.net/browse/JDK-8166842
>
Looks good to me too.
-Alan
More information about the core-libs-dev
mailing list