RFR: typo causes write barrier to be used where a read barrier is sufficient

Aleksey Shipilev shade at redhat.com
Thu Jun 14 11:57:18 UTC 2018


On 06/14/2018 01:49 PM, Roland Westrelin wrote:
> 
> diff --git a/src/hotspot/share/opto/parse2.cpp b/src/hotspot/share/opto/parse2.cpp
> --- a/src/hotspot/share/opto/parse2.cpp
> +++ b/src/hotspot/share/opto/parse2.cpp
> @@ -211,7 +211,7 @@
>    if (is_store) {
>      ary = access_resolve_for_write(ary);
>    } else {
> -    ary = access_resolve_for_write(ary);
> +    ary = access_resolve_for_read(ary);
>    }

Oh wow. Looks good! Maybe Roman would confirm this is bad typo indeed.

-Aleksey



More information about the shenandoah-dev mailing list