RFR: 8269119: C2: Avoid redundant memory barriers in Unsafe.copyMemory0 intrinsic [v2]
Roland Westrelin
roland at openjdk.java.net
Thu Sep 2 13:19:29 UTC 2021
On Thu, 2 Sep 2021 12:59:41 GMT, Roland Westrelin <roland at openjdk.org> wrote:
>> Vladimir Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove memory barriers
>
> src/hotspot/share/opto/library_call.cpp line 4082:
>
>> 4080:
>> 4081: bool is_array = _gvn.type(addr)->isa_aryptr();
>> 4082: return is_mixed || (in_heap && !is_array);
>
> Why is the is_array check needed?
Tobias explained that one to me privately
-------------
PR: https://git.openjdk.java.net/jdk/pull/5259
More information about the hotspot-compiler-dev
mailing list